/* ===================================================================
   NETASU — Main Stylesheet
   Modern, clean design with brand colors
   =================================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --clr-primary:       #2d4a7a;
    --clr-primary-dark:  #1e3456;
    --clr-primary-light: #3b6db5;
    --clr-accent:        #8cb544;
    --clr-accent-dark:   #6f9a2e;
    --clr-accent-light:  #a8d15e;

    --clr-bg:            #ffffff;
    --clr-bg-alt:        #f6f8fb;
    --clr-bg-dark:       #0f1b2d;
    --clr-surface:       #ffffff;
    --clr-border:        #e2e8f0;

    --clr-text:          #334155;
    --clr-text-light:    #64748b;
    --clr-text-heading:  #1e293b;
    --clr-text-on-dark:  #e2e8f0;
    --clr-white:         #ffffff;

    --ff-body:           'Inter', system-ui, -apple-system, sans-serif;
    --fw-light: 300;  --fw-regular: 400;  --fw-medium: 500;
    --fw-semi: 600;   --fw-bold: 700;     --fw-extra: 800;

    --fs-xs: .75rem;   --fs-sm: .875rem;  --fs-base: 1rem;
    --fs-md: 1.125rem; --fs-lg: 1.25rem;  --fs-xl: 1.5rem;
    --fs-2xl: 2rem;    --fs-3xl: 2.5rem;  --fs-4xl: 3.25rem;
    --fs-5xl: 4rem;

    --radius-sm: .375rem;
    --radius-md: .625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.04);
    --shadow-glow: 0 0 40px rgba(140,181,68,.25);

    --transition: .3s cubic-bezier(.4,0,.2,1);
    --container-max: 1200px;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
    --clr-bg:            #0f172a;
    --clr-bg-alt:        #1e293b;
    --clr-bg-dark:       #020617;
    --clr-surface:       #1e293b;
    --clr-border:        #334155;

    --clr-text:          #cbd5e1;
    --clr-text-light:    #94a3b8;
    --clr-text-heading:  #f1f5f9;
    --clr-text-on-dark:  #e2e8f0;
    --clr-white:         #f8fafc;
}
[data-theme="dark"] .header {
    background: rgba(15,23,42,.85);
}
[data-theme="dark"] .hero__overlay {
    background:
        linear-gradient(160deg, rgba(15,23,42,.92) 0%, rgba(30,41,59,.88) 40%, rgba(22,36,21,.90) 100%);
}
[data-theme="dark"] .hero__badge {
    background: var(--clr-surface);
}
[data-theme="dark"] .service-card {
    background: var(--clr-surface);
}

[data-theme="dark"] .footer__logo {
    filter: brightness(0) invert(1);
}
[data-theme="dark"] .btn--ghost {
    color: var(--clr-text-heading);
}
@media (max-width: 768px) {
    [data-theme="dark"] .nav__menu {
        background: var(--clr-surface);
    }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea {
    font: inherit; color: inherit; border: none; outline: none; background: none;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- SECTION ---------- */
.section { padding: 6rem 0; }

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.section__tag {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}
.section__title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--clr-text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section__subtitle {
    font-size: var(--fs-md);
    color: var(--clr-text-light);
}
.text--accent { color: var(--clr-accent); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: var(--fw-semi);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn--sm  { padding: .5rem 1.25rem; font-size: var(--fs-sm); }
.btn--lg  { padding: .875rem 2rem;  font-size: var(--fs-base); }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    color: var(--clr-white);
    box-shadow: 0 4px 14px rgba(140,181,68,.35);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140,181,68,.45);
}

.btn--ghost {
    background: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-border);
}
.btn--ghost:hover {
    border-color: var(--clr-primary);
    background: rgba(45,74,122,.04);
}

/* ====================================================================
   HEADER / NAV
   ==================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.header--scrolled { border-bottom-color: var(--clr-border); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}
.nav__logo-img { height: 2.2rem; }

.nav__list {
    display: flex;
    gap: 2rem;
}
.nav__link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-light);
    position: relative;
    transition: var(--transition);
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--clr-accent);
    border-radius: 1px;
    transition: var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--clr-primary); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__toggle, .nav__close { display: none; cursor: pointer; color: var(--clr-text-heading); }

/* Nav overlay (mobile) */
.nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.nav__overlay.show-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Theme toggle button */
.theme-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: var(--clr-text-light);
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
}
.theme-toggle:hover { color: var(--clr-accent); }
.theme-toggle__icon { display: none; }
.theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow: hidden;
    background: url('../hero-bg.jpg') center/cover no-repeat fixed;background-position-y: 20px;
}

/* Dark overlay layers to fade the background image */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(246,248,251,.88) 0%, rgba(238,243,249,.82) 40%, rgba(240,247,235,.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem .4rem .6rem;
    background: var(--clr-white);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}
.hero__badge-dot {
    width: 8px; height: 8px;
    background: var(--clr-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(140,181,68,.5); }
    50%      { box-shadow: 0 0 0 6px rgba(140,181,68,0); }
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extra);
    color: #2d4c68;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero__title--accent {
    display: block;
    color: #77ab52;
}

.hero__description {
    font-size: var(--fs-lg);
    color: var(--clr-text-light);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ====================================================================
   SERVICES
   ==================================================================== */
.services { background: var(--clr-bg-alt); }

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

.service-card {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--clr-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}
.service-card__icon--blue   { background: rgba(59,109,181,.1); color: #3b6db5; }
.service-card__icon--green  { background: rgba(140,181,68,.1); color: #6f9a2e; }
.service-card__icon--purple { background: rgba(139,92,246,.1); color: #7c3aed; }
.service-card__icon--orange { background: rgba(232,145,58,.1); color: #c87a2e; }
.service-card__icon--teal   { background: rgba(20,184,166,.1); color: #0d9488; }
.service-card__icon--pink   { background: rgba(236,72,153,.1); color: #db2777; }

.service-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semi);
    color: var(--clr-text-heading);
    margin-bottom: .5rem;
}
.service-card__text {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--clr-primary);
    transition: var(--transition);
}
.service-card__link:hover {
    color: var(--clr-accent);
    gap: .6rem;
}

/* ====================================================================
   ABOUT
   ==================================================================== */
.about__intro {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about__text {
    font-size: var(--fs-md);
    color: var(--clr-text);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about__products {
    margin-top: 1rem;
}
.about__products-heading {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-heading);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Spotlight product card */
.spotlight-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spotlight-card__badge {
    display: inline-block;
    padding: .25rem .75rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--clr-accent-dark);
    background: rgba(140,181,68,.12);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.spotlight-card__icon {
    width: 44px; height: 44px;
    margin: 0 auto .75rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(45,74,122,.08), rgba(140,181,68,.1));
    border-radius: var(--radius-md);
    color: var(--clr-primary);
}
.spotlight-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--clr-text-heading);
    margin-bottom: .4rem;
}
.spotlight-card__text {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.spotlight-card__tags {
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.spotlight-card__tags span {
    padding: .25rem .7rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--clr-primary);
    background: rgba(45,74,122,.06);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
}

.spotlight-card__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.25rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--clr-accent-dark);
    text-decoration: none;
    transition: color var(--transition), gap var(--transition);
}
.spotlight-card__link:hover {
    color: var(--clr-primary);
    gap: .6rem;
}
.spotlight-card__link--disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

/* Swiper overrides for product slider */
.product-swiper {
    padding-bottom: 2.5rem;
}
.product-swiper .swiper-slide {
    height: auto;
}
.product-swiper .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: var(--clr-border);
    opacity: 1;
    transition: background var(--transition), transform var(--transition);
}
.product-swiper .swiper-pagination-bullet-active {
    background: var(--clr-accent);
    transform: scale(1.3);
}

[data-theme="dark"] .spotlight-card {
    background: var(--clr-surface);
}
[data-theme="dark"] .spotlight-card__tags span {
    background: rgba(140,181,68,.1);
    color: var(--clr-accent-light);
}

/* ====================================================================
   STATS
   ==================================================================== */
.stats {
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
    color: var(--clr-white);
    padding: 5rem 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats__item { padding: 1rem; }

.stats__number {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-extra);
    line-height: 1;
    display: inline;
}
.stats__plus {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--clr-accent-light);
}
.stats__label {
    display: block;
    margin-top: .5rem;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.7);
    font-weight: var(--fw-medium);
    letter-spacing: .03em;
}

/* ====================================================================
   TESTIMONIALS
   ==================================================================== */
.testimonials { background: var(--clr-bg-alt); }

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--clr-border);
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card__stars { display: flex; gap: .2rem; margin-bottom: 1rem; }

.testimonial-card__text {
    font-size: var(--fs-sm);
    color: var(--clr-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card__author { display: flex; align-items: center; gap: .75rem; }

.testimonial-card__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: var(--fw-bold); font-size: var(--fs-sm);
}

.testimonial-card__name {
    display: block;
    font-size: var(--fs-sm);
    color: var(--clr-text-heading);
}
.testimonial-card__role {
    font-size: var(--fs-xs);
    color: var(--clr-text-light);
}

/* ====================================================================
   CTA / CONTACT
   ==================================================================== */
.cta { background: var(--clr-bg); padding: 2rem 0 4rem; }

.cta__banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 50%, #1a3a2e 100%);
    border-radius: var(--radius-xl);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 340px;
}

/* Decorative floating shapes */
.cta__decor {
    position: absolute;
    pointer-events: none;
    animation: ctaFloat 6s ease-in-out infinite;
}
.cta__decor--1 { top: -10px; right: 30%; animation-delay: 0s; }
.cta__decor--2 { bottom: -8px; left: 8%; animation-delay: 2s; }
.cta__decor--3 { top: 20%; right: 5%; animation-delay: 4s; }

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.cta__tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--clr-accent-light);
    margin-bottom: .75rem;
}

.cta__heading {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta__desc {
    font-size: var(--fs-md);
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 2rem;
}

.cta__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn--white {
    background: #fff;
    color: var(--clr-primary-dark);
    border: none;
}
.btn--white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.cta__mailto-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: var(--fs-md);
    padding: 1rem 2rem;
    font-weight: var(--fw-semi);
}

.cta__email-text {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.5);
    font-weight: var(--fw-medium);
}

.cta__illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta__illustration svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}


/* ====================================================================
   FOOTER (compact)
   ==================================================================== */
.footer--compact {
    background: var(--clr-bg-dark);
    color: var(--clr-text-on-dark);
    padding: 1.5rem 0;
}

.footer__logo { height: 1.8rem; filter: brightness(0) invert(1); }

.footer__bottom--with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.45);
}

/* ====================================================================
   ANIMATIONS (Intersection Observer driven)
   ==================================================================== */
[data-animate] {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-right"]  { transform: translateX(-40px); }
[data-animate="fade-left"]   { transform: translateX(40px); }

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

/* --- Tablet --- */
@media (max-width: 1024px) {
    .hero__title      { font-size: var(--fs-4xl); }
    .section__title   { font-size: var(--fs-2xl); }
    .cta__banner      { grid-template-columns: 1fr; text-align: center; padding: 3rem 2.5rem; }
    .cta__desc         { max-width: 100%; }
    .cta__actions      { justify-content: center; }
    .cta__illustration { display: none; }
}

/* --- Mobile landscape --- */
@media (max-width: 768px) {
    .hero__title          { font-size: var(--fs-3xl); }

    .services__grid--3    { grid-template-columns: 1fr; }

    .nav__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; max-width: 320px;
        height: 100vh;
        background: var(--clr-white);
        box-shadow: -4px 0 30px rgba(0,0,0,.1);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        z-index: 100;
    }
    .nav__menu.show-menu { right: 0; }

    .nav__list { flex-direction: column; gap: 1.5rem; }
    .nav__link { font-size: var(--fs-md); }
    .nav__toggle, .nav__close { display: block; }
    .nav__close { position: absolute; top: 1.5rem; right: 1.5rem; }

    .nav__actions .btn { display: none; }
}

/* --- Mobile portrait --- */
@media (max-width: 480px) {
    .section           { padding: 3rem 0; }
    .hero__title       { font-size: var(--fs-2xl); }
    .cta__banner       { padding: 2.5rem 1.5rem; }
    .cta__heading      { font-size: var(--fs-2xl); }
}
