/* =============================================================
   JANJAD CHEMICALS — Complete Stylesheet
   Division of Janjad Trading PLC
   Color Scheme: Forest Green (#0d3a2b) + Champagne Gold (#c5a059)
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================= */

/* ---------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   --------------------------------------------------------- */
:root {
    /* Brand Colors */
    --green-deep:       #0d3a2b;
    --green-dark:       #0f4a36;
    --green-medium:     #1a6b4f;
    --green-light:      #e8f0ec;
    --green-lightest:   #f0f7f3;
    --gold:             #c5a059;
    --gold-light:       #d4b76e;
    --gold-dark:        #a88640;
    --gold-glow:        rgba(197, 160, 89, 0.15);

    /* Neutrals */
    --white:            #ffffff;
    --off-white:        #f8f6f1;
    --gray-50:          #f9fafb;
    --gray-100:         #f3f4f6;
    --gray-200:         #e5e7eb;
    --gray-300:         #d1d5db;
    --gray-400:         #9ca3af;
    --gray-500:         #6b7280;
    --gray-600:         #4b5563;
    --gray-700:         #374151;
    --gray-800:         #1f2937;
    --gray-900:         #111827;
    --text-primary:     #1a1a2e;
    --text-secondary:   #4a4a5a;
    --text-light:       #7a7a8a;

    /* Typography */
    --font-heading:     'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizing */
    --container-max:    1200px;
    --navbar-height:    72px;
    --border-radius:    12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* Shadows */
    --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:        0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg:        0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl:        0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-gold:      0 4px 20px rgba(197, 160, 89, 0.25);

    /* Transitions */
    --ease-smooth:      cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:  0.2s var(--ease-smooth);
    --transition-base:  0.3s var(--ease-smooth);
    --transition-slow:  0.5s var(--ease-smooth);
}


/* ---------------------------------------------------------
   RESET & BASE STYLES
   --------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utility: container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility: gold accent text */
.gold {
    color: var(--gold);
}


/* ---------------------------------------------------------
   SECTION HEADER (Reusable)
   --------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-header__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-glow);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-header__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   BUTTONS (Reusable)
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn--primary {
    background: var(--gold);
    color: var(--green-deep);
    border-color: var(--gold);
}

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

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

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

/* Loading state */
.btn--loading .btn__text { visibility: hidden; }
.btn--loading .btn__loader { display: inline-flex; }
.btn__loader { display: none; }


/* ---------------------------------------------------------
   NAVIGATION BAR
   Fixed dark-green navbar
   --------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--green-deep);
    z-index: 1000;
    transition: all var(--transition-base);
}

/* Scrolled state — tighter, with shadow */
.navbar--scrolled {
    height: 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    background: rgba(13, 58, 43, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.navbar__logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(197, 160, 89, 0.3);
    transition: var(--transition-base);
}

.navbar--scrolled .navbar__logo {
    width: 36px;
    height: 36px;
}

.navbar__name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1.5px;
}

.navbar__name--accent {
    color: var(--gold);
}

/* Nav Links */
.navbar__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar__link.active {
    color: var(--gold);
}

.navbar__link--parent {
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--gold-light);
}

.navbar__link--parent:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* Hamburger Toggle (mobile) */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.navbar__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Hamburger → X animation */
.navbar__toggle.active .navbar__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle.active .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
}
.navbar__toggle.active .navbar__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ---------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------- */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--green-deep) 0%, #0a2e22 50%, #071f17 100%);
    overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(197, 160, 89, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Text Content */
.hero__content {
    color: var(--white);
}

.hero__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 520px;
}

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

/* Hero Curved Divider */
.hero__divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero__divider svg {
    width: 100%;
    height: 80px;
}


/* ---------------------------------------------------------
   IMAGE CAROUSEL (Hero)
   --------------------------------------------------------- */
.carousel {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(197, 160, 89, 0.2);
}

.carousel__track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--green-dark);
}

.carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
}

.carousel__slide.active {
    opacity: 1;
}

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

/* Dot Navigation */
.carousel__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    cursor: pointer;
}

.carousel__dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}


/* ---------------------------------------------------------
   PRODUCTS CATALOG SECTION
   --------------------------------------------------------- */
.products {
    padding: 100px 0;
    background: var(--off-white);
}

/* Product Card — alternating layout */
.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 56px;
    transition: box-shadow var(--transition-base);
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Reversed layout (image on right) */
.product-card--reversed .product-card__image {
    order: 2;
}

.product-card--reversed .product-card__info {
    order: 1;
}

/* Product Image */
.product-card__image {
    position: relative;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

/* Type Badge on image */
.product-card__type-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(13, 58, 43, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Product Info */
.product-card__info {
    padding: 40px 40px 40px 0;
}

/* When image is on right, pad left instead */
.product-card--reversed .product-card__info {
    padding: 40px 0 40px 40px;
}

.product-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 4px;
}

.product-card__full-name {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 16px;
}

.product-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Application Chips */
.product-card__apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.app-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-deep);
    background: var(--green-lightest);
    border: 1px solid rgba(13, 58, 43, 0.1);
    padding: 5px 14px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.spec-table thead th {
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 8px 12px;
    border-bottom: 2px solid var(--gold);
}

.spec-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition-fast);
}

.spec-table tbody tr:last-child {
    border-bottom: none;
}

.spec-table tbody tr:hover {
    background: var(--gold-glow);
}

.spec-table td {
    padding: 10px 12px;
    color: var(--text-secondary);
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--green-deep);
    white-space: nowrap;
}

.spec-table td:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Packaging info */
.product-card__packaging {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--gold);
}

.product-card__packaging svg {
    color: var(--gold);
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   CHEMICAL PLACEHOLDER BOX
   For products without images
   --------------------------------------------------------- */
.product-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 40%, #0a2e22 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative hex pattern */
.placeholder-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(197, 160, 89, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(197, 160, 89, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Hexagonal grid pattern overlay */
.placeholder-box::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(30deg, var(--white) 12%, transparent 12.5%, transparent 87%, var(--white) 87.5%, var(--white)),
        linear-gradient(150deg, var(--white) 12%, transparent 12.5%, transparent 87%, var(--white) 87.5%, var(--white)),
        linear-gradient(30deg, var(--white) 12%, transparent 12.5%, transparent 87%, var(--white) 87.5%, var(--white)),
        linear-gradient(150deg, var(--white) 12%, transparent 12.5%, transparent 87%, var(--white) 87.5%, var(--white)),
        linear-gradient(60deg, rgba(255,255,255,0.3) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.3) 75%),
        linear-gradient(60deg, rgba(255,255,255,0.3) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.3) 75%);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
    pointer-events: none;
}

.placeholder-box__icon {
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.placeholder-box__formula {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(197, 160, 89, 0.3);
}

.placeholder-box__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   APPLICATIONS SECTION
   --------------------------------------------------------- */
.applications {
    padding: 100px 0;
    background: var(--white);
}

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

.app-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.app-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--green-deep);
    border-radius: 50%;
    color: var(--gold);
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.app-card:hover .app-card__icon {
    background: var(--gold);
    color: var(--green-deep);
    box-shadow: var(--shadow-gold);
}

.app-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 14px;
}

.app-card__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.app-card__chemicals {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-card__chemicals li {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark);
    padding: 4px 0;
    border-bottom: 1px dashed var(--gray-200);
}

.app-card__chemicals li:last-child {
    border-bottom: none;
}


/* ---------------------------------------------------------
   QUALITY & SUPPLY CHAIN SECTION
   --------------------------------------------------------- */
.quality {
    padding: 100px 0;
    background: var(--off-white);
}

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

.quality-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-deep), var(--gold));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.quality-card:hover::before {
    transform: scaleX(1);
}

.quality-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quality-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gold-glow);
    border-radius: 50%;
    color: var(--gold);
    margin-bottom: 20px;
}

.quality-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 12px;
}

.quality-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   CONTACT SECTION
   --------------------------------------------------------- */
.contact {
    padding: 100px 0;
    background: var(--white);
}

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

/* Contact Details (left column) */
.contact__details {
    background: var(--green-deep);
    border-radius: var(--border-radius-lg);
    padding: 40px 36px;
    color: var(--white);
}

.contact__details-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--gold);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(197, 160, 89, 0.12);
    border-radius: 50%;
    color: var(--gold);
}

.contact-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--gold);
}

/* Contact Form (right column) */
.contact__form-wrapper {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.contact-form__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group--full {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Validation error styles */
.form-error {
    font-size: 0.78rem;
    color: #e53e3e;
    min-height: 18px;
    margin-top: 4px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}


/* ---------------------------------------------------------
   SUCCESS MODAL
   --------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: transform var(--transition-base);
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__icon {
    color: var(--green-medium);
    margin-bottom: 20px;
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 12px;
}

.modal__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
    background: var(--green-deep);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.footer__brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.footer__tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer__links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer__links--contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__links--contact svg {
    color: var(--gold);
    flex-shrink: 0;
    opacity: 0.7;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}


/* ---------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   --------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

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

/* Staggered delay for grids */
.applications__grid .app-card:nth-child(2) { transition-delay: 0.1s; }
.applications__grid .app-card:nth-child(3) { transition-delay: 0.2s; }
.quality__grid .quality-card:nth-child(2) { transition-delay: 0.1s; }
.quality__grid .quality-card:nth-child(3) { transition-delay: 0.2s; }


/* ---------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__carousel {
        max-width: 520px;
        margin: 0 auto;
    }

    /* Product cards → single column */
    .product-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-card__image {
        min-height: 300px;
    }

    .product-card__info {
        padding: 32px !important;
    }

    /* Reset order for reversed cards on tablet */
    .product-card--reversed .product-card__image {
        order: 0;
    }

    .product-card--reversed .product-card__info {
        order: 0;
    }

    /* Application & Quality grids → 2 columns */
    .applications__grid,
    .quality__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .applications__grid .app-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .quality__grid .quality-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Contact → single column */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    /* Footer → 2 columns */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    /* Navbar → hamburger menu */
    .navbar__toggle {
        display: flex;
    }

    .navbar__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--green-deep);
        padding: 100px 32px 32px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .navbar__links.open {
        transform: translateX(0);
    }

    .navbar__link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--border-radius-sm);
    }

    /* Hero adjustments */
    .hero {
        padding: 110px 0 80px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    /* Products */
    .product-card__image {
        min-height: 260px;
    }

    .placeholder-box {
        min-height: 260px;
    }

    .placeholder-box__formula {
        font-size: 2rem;
    }

    /* Application & Quality → single column */
    .applications__grid,
    .quality__grid {
        grid-template-columns: 1fr;
    }

    .applications__grid .app-card:last-child,
    .quality__grid .quality-card:last-child {
        max-width: 100%;
    }

    /* Form rows → single column */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact__form-wrapper {
        padding: 28px 24px;
    }

    .contact__details {
        padding: 32px 28px;
    }

    /* Footer → single column */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 48px;
    }

    .products,
    .applications,
    .quality,
    .contact {
        padding: 72px 0;
    }
}

/* ---- Small Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero__badge {
        font-size: 0.65rem;
        padding: 6px 14px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.92rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .navbar__name {
        font-size: 1rem;
    }

    .product-card__title {
        font-size: 1.4rem;
    }

    .product-card__info {
        padding: 24px !important;
    }

    .product-card__image {
        min-height: 220px;
    }

    .placeholder-box {
        min-height: 220px;
    }

    .spec-table {
        font-size: 0.8rem;
    }

    .spec-table td {
        padding: 8px;
    }

    .section-header__title {
        font-size: 1.5rem;
    }

    .app-card,
    .quality-card {
        padding: 28px 24px;
    }

    .modal {
        padding: 36px 24px;
    }

    .modal__title {
        font-size: 1.25rem;
    }

    .products,
    .applications,
    .quality,
    .contact {
        padding: 56px 0;
    }
}


/* ---------------------------------------------------------
   PRINT STYLES (basic)
   --------------------------------------------------------- */
@media print {
    .navbar,
    .hero__divider,
    .modal-overlay,
    .hero__actions,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .hero__title,
    .hero__subtitle {
        color: #000;
    }
}
