/* ========================================
   Netcom Learning — Brand Styles
   Palette: Teal (#0d9488) + Slate Grey
   Typography: Playfair Display + Inter
======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 50px -12px rgba(15, 23, 42, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal-600);
    color: #ffffff;
    border-color: var(--teal-600);
}

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn--ghost-light {
    background: transparent;
    color: var(--slate-800);
    border-color: var(--slate-300);
}

.btn--ghost-light:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--slate-200);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s;
}

.nav.scrolled .nav__logo {
    color: var(--slate-900);
}

.nav__logo-icon {
    color: var(--teal-400);
    transition: color 0.3s;
}

.nav.scrolled .nav__logo-icon {
    color: var(--teal-600);
}

.nav__logo-accent {
    color: var(--teal-400);
    transition: color 0.3s;
}

.nav.scrolled .nav__logo-accent {
    color: var(--teal-600);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-400);
    transition: width 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: #ffffff;
}

.nav.scrolled .nav__link {
    color: var(--slate-600);
}

.nav.scrolled .nav__link:hover {
    color: var(--slate-900);
}

.nav.scrolled .nav__link::after {
    background: var(--teal-600);
}

.nav__link--cta {
    background: var(--teal-600);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

.nav.scrolled .nav__link--cta {
    color: #ffffff !important;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav.scrolled .nav__toggle-bar {
    background: var(--slate-800);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav__overlay.active {
    display: block;
    opacity: 1;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.82) 0%,
        rgba(15, 23, 42, 0.72) 50%,
        rgba(13, 148, 136, 0.45) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__inner {
    max-width: 720px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--slate-50);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--teal-600);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.15;
}

.about__content .section-heading {
    margin-bottom: 20px;
}

.about__text {
    color: var(--slate-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-700);
    line-height: 1;
    margin-bottom: 6px;
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Products --- */
.products {
    padding: 120px 0;
    background: #ffffff;
}

.products__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.products__header .section-heading {
    margin-bottom: 16px;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-50);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-card__img {
    overflow: hidden;
    height: 240px;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__body {
    padding: 28px;
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.product-card__desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--slate-900);
}

.services__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.services__header .section-eyebrow {
    color: var(--teal-400);
}

.services__header .section-heading {
    color: #ffffff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--teal-600);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--teal-900);
    color: var(--teal-400);
    margin-bottom: 24px;
    transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-card__icon {
    background: var(--teal-600);
    color: #ffffff;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-banner__bg {
    position: absolute;
    inset: 0;
}

.cta-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 148, 136, 0.9) 0%,
        rgba(15, 118, 110, 0.88) 100%
    );
}

.cta-banner__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-banner__eyebrow {
    color: var(--teal-200) !important;
}

.cta-banner__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta-banner__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-banner__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--ghost-light {
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
}

.btn--ghost-light:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: #ffffff;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__text {
    color: var(--slate-500);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-detail__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--teal-50);
    color: var(--teal-600);
    flex-shrink: 0;
}

.contact-detail__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-detail__value {
    font-size: 1rem;
    color: var(--slate-800);
    font-weight: 500;
    line-height: 1.6;
}

.contact-detail__value a {
    color: var(--teal-700);
    transition: color 0.3s;
}

.contact-detail__value a:hover {
    color: var(--teal-500);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--slate-50);
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}

.contact-form__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 32px;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: #ffffff;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--slate-400);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__success {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    color: var(--teal-800);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form__success.visible {
    display: block;
}

/* --- Map --- */
.map-section {
    border-top: 1px solid var(--slate-200);
}

.map-section__inner iframe {
    width: 100%;
    height: 400px;
    display: block;
    filter: grayscale(30%);
}

/* --- Footer --- */
.footer {
    background: var(--slate-950);
    padding: 80px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: var(--teal-400);
}

.footer__logo-accent {
    color: var(--teal-400);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-400);
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--slate-500);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--teal-400);
}

.footer__bottom {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--slate-600);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about__grid {
        gap: 48px;
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--slate-900);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__link {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.1rem;
    }
    
    .nav__link:hover {
        color: #ffffff !important;
    }
    
    .nav.scrolled .nav__link {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__headline {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__image-wrap img {
        height: 360px;
    }
    
    .about__stats {
        gap: 24px;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form {
        padding: 28px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-banner__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-banner__actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about, .products, .services, .contact {
        padding: 80px 0;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .stat__number {
        font-size: 2rem;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
