/*
Theme Name:   A&A Distributors
Theme URI:    http://aadistributors.com
Description:  A&A Distributors — Global Garment Sourcing & Manufacturing
Author:       A&A Distributors
Template:     astra
Version:      2.0.0
*/

/* ═══════════════════════════════════════════════════════════
   BRAND TOKENS
═══════════════════════════════════════════════════════════ */
:root {
    --navy:        #0d1b2e;
    --navy-mid:    #1a2f4a;
    --gold:        #c9a84c;
    --gold-light:  #e8c96a;
    --offwhite:    #f7f6f3;
    --light-grey:  #ebebeb;
    --mid-grey:    #6b7280;
    --dark-grey:   #374151;
    --white:       #ffffff;
    --font-serif:  'Georgia', 'Times New Roman', serif;
    --font-sans:   'Helvetica Neue', Arial, sans-serif;
    --radius:      3px;
    --transition:  0.3s ease;
    --shadow-card: 0 4px 24px rgba(13,27,46,0.10);
    --shadow-hover:0 8px 40px rgba(13,27,46,0.18);
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--dark-grey);
    background: var(--white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); transition: color var(--transition); text-decoration: none; }
a:hover { color: var(--gold); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 .5em;
}

/* ═══════════════════════════════════════════════════════════
   HEADER — full-width dark bar
═══════════════════════════════════════════════════════════ */
#masthead,
.site-header,
.ast-masthead-custom-menu-items,
header.site-header { background: var(--navy) !important; }

.main-header-bar { background: var(--navy) !important; padding: 0 !important; }

.ast-site-identity { padding: 16px 0; }

.ast-logo-title-inline .site-title {
    font-family: var(--font-serif);
    font-size: 1.35em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white) !important;
}
.ast-logo-title-inline .site-title a { color: var(--white) !important; }

.site-description {
    color: var(--gold-light) !important;
    font-size: 0.7em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Nav links */
.main-navigation .menu-item a,
.main-header-menu .menu-link,
.ast-masthead-custom-menu-items a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.78em;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    padding: 8px 16px !important;
    transition: color var(--transition);
}
.main-navigation .menu-item a:hover,
.main-header-menu .menu-link:hover { color: var(--gold-light) !important; }

.main-navigation .menu-item.current-menu-item > a,
.main-header-menu .current-menu-item > .menu-link {
    color: var(--gold-light) !important;
}

/* Gold underline on header */
.main-header-bar { border-bottom: 2px solid var(--gold) !important; }

/* Dropdown */
.main-navigation .sub-menu,
.main-header-menu .sub-menu {
    background: var(--navy-mid) !important;
    border-top: 2px solid var(--gold) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}
.main-navigation .sub-menu .menu-link,
.main-header-menu .sub-menu .menu-link {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    font-size: 0.75em !important;
}

/* Quote button in nav */
.nav-quote-btn a {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: var(--radius) !important;
    margin-left: 8px;
}
.nav-quote-btn a:hover {
    background: var(--gold-light) !important;
    color: var(--navy) !important;
}

/* ═══════════════════════════════════════════════════════════
   ASTRA OVERRIDES — full width pages
═══════════════════════════════════════════════════════════ */
.ast-page-builder-template .entry-content,
.page-template-template-homepage .entry-content,
.page-template-template-product-line .entry-content,
.page-template-template-contact-aa .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-template-homepage .entry-header,
.page-template-template-product-line .entry-header,
.page-template-template-contact-aa .entry-header { display: none; }

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION UTILITIES
═══════════════════════════════════════════════════════════ */
.aa-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.aa-section { padding: 80px 0; }
.aa-section-sm { padding: 48px 0; }

.aa-label {
    font-size: 0.72em;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.aa-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.8em, 3vw, 2.6em);
    color: var(--navy);
    font-weight: normal;
    margin: 0 0 16px;
}
.aa-heading-white { color: var(--white); }
.aa-subhead {
    font-size: 1.05em;
    color: var(--mid-grey);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 0 40px;
}
.aa-subhead-white { color: rgba(255,255,255,0.72); }
.aa-divider {
    width: 48px; height: 2px;
    background: var(--gold);
    margin: 16px 0 32px;
}
.aa-divider-center { margin-left: auto; margin-right: auto; }

/* Buttons */
.aa-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}
.aa-btn-gold {
    background: var(--gold);
    color: var(--navy) !important;
    border-color: var(--gold);
}
.aa-btn-gold:hover {
    background: transparent;
    color: var(--gold) !important;
}
.aa-btn-outline-white {
    background: transparent;
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.5);
}
.aa-btn-outline-white:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}
.aa-btn-navy {
    background: var(--navy);
    color: var(--white) !important;
    border-color: var(--navy);
}
.aa-btn-navy:hover {
    background: transparent;
    color: var(--navy) !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.aa-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}
.aa-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 0.45;
    transition: opacity 1s ease;
}
.aa-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(13,27,46,0.92) 0%, rgba(13,27,46,0.55) 60%, rgba(13,27,46,0.2) 100%);
}
.aa-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.aa-hero-eyebrow {
    font-size: 0.72em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}
.aa-hero h1 {
    color: var(--white);
    font-size: clamp(2em, 4.5vw, 3.8em);
    font-weight: normal;
    line-height: 1.15;
    margin: 0 0 20px;
    max-width: 680px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.aa-hero h1 em { color: var(--gold-light); font-style: normal; }
.aa-hero-desc {
    color: rgba(255,255,255,0.78);
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 36px;
}
.aa-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll indicator */
.aa-hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.aa-hero-scroll span { color: rgba(255,255,255,0.4); font-size: 0.65em; letter-spacing: 0.12em; text-transform: uppercase; }
.aa-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
    animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ═══════════════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════════════ */
.aa-stats-strip {
    background: var(--navy-mid);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 28px 0;
}
.aa-stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.aa-stat {
    text-align: center;
    padding: 10px 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex: 1; min-width: 140px;
}
.aa-stat:last-child { border-right: none; }
.aa-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2em;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 4px;
}
.aa-stat-label {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT LINE GRID
═══════════════════════════════════════════════════════════ */
.aa-products-section { background: var(--white); }
.aa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--light-grey);
}
.aa-product-card {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    cursor: pointer;
    display: block;
    text-decoration: none;
    aspect-ratio: 3/4;
}
.aa-product-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.75;
}
.aa-product-card:hover img { transform: scale(1.08); opacity: 0.5; }
.aa-product-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,46,0.95) 0%, rgba(13,27,46,0.2) 55%, transparent 100%);
    transition: background var(--transition);
}
.aa-product-card:hover .aa-product-card-overlay {
    background: linear-gradient(to top, rgba(13,27,46,0.98) 0%, rgba(13,27,46,0.6) 100%);
}
.aa-product-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 20px 22px;
    transition: transform var(--transition);
}
.aa-product-card:hover .aa-product-card-content { transform: translateY(-8px); }
.aa-product-card-tag {
    font-size: 0.62em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
    display: block;
}
.aa-product-card-title {
    font-family: var(--font-serif);
    font-size: 1.15em;
    color: var(--white);
    margin: 0 0 8px;
    font-weight: normal;
}
.aa-product-card-desc {
    font-size: 0.75em;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin: 0 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.aa-product-card:hover .aa-product-card-desc { max-height: 60px; opacity: 1; }
.aa-product-card-arrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.72em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.aa-product-card:hover .aa-product-card-arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════════════════════
   HOW WE WORK — PROCESS
═══════════════════════════════════════════════════════════ */
.aa-process-section { background: var(--offwhite); }
.aa-process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
    margin-top: 48px;
}
.aa-process-grid::before {
    content: '';
    position: absolute;
    top: 28px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.aa-process-step {
    text-align: center;
    padding: 0 16px;
    position: relative;
}
.aa-process-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.2em;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--gold);
}
.aa-process-step h4 {
    font-size: 0.82em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 8px;
}
.aa-process-step p {
    font-size: 0.78em;
    color: var(--mid-grey);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   SOURCING MAP / COUNTRIES STRIP
═══════════════════════════════════════════════════════════ */
.aa-countries-section { background: var(--navy); padding: 64px 0; }
.aa-countries-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.aa-country {
    text-align: center;
    color: rgba(255,255,255,0.8);
}
.aa-country-flag { font-size: 2.4em; margin-bottom: 8px; display: block; }
.aa-country-name {
    font-size: 0.75em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.aa-country-spec {
    font-size: 0.68em;
    color: var(--gold);
    margin-top: 4px;
    letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
.aa-cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.aa-cta-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 50%;
}
.aa-cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 200px; height: 200px;
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 50%;
}
.aa-cta-section h2 { color: var(--white); font-size: clamp(1.6em,3vw,2.4em); font-weight: normal; margin-bottom: 12px; }
.aa-cta-section p { color: rgba(255,255,255,0.65); font-size: 1em; margin: 0 auto 36px; max-width: 480px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT LINE SINGLE PAGE
═══════════════════════════════════════════════════════════ */
.aa-pl-hero {
    min-height: 440px;
    position: relative;
    display: flex;
    align-items: flex-end;
    background: var(--navy);
    overflow: hidden;
}
.aa-pl-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}
.aa-pl-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,46,0.95) 0%, rgba(13,27,46,0.3) 100%);
}
.aa-pl-hero-content {
    position: relative; z-index: 2;
    padding: 56px 32px;
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.aa-pl-breadcrumb {
    font-size: 0.72em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}
.aa-pl-breadcrumb a { color: var(--gold); }
.aa-pl-hero h1 {
    color: var(--white);
    font-size: clamp(1.8em,4vw,3em);
    font-weight: normal;
    margin: 0 0 12px;
}
.aa-pl-hero-sub { color: rgba(255,255,255,0.7); font-size: 1em; margin: 0; }

/* Specs grid */
.aa-pl-specs {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1px;
    background: var(--light-grey);
    border: 1px solid var(--light-grey);
    margin: 48px 0;
}
.aa-pl-spec {
    background: var(--white);
    padding: 28px 24px;
    text-align: center;
}
.aa-pl-spec-icon { font-size: 1.6em; margin-bottom: 10px; display: block; }
.aa-pl-spec-label {
    font-size: 0.68em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 6px;
    display: block;
}
.aa-pl-spec-value {
    font-family: var(--font-serif);
    font-size: 1.05em;
    color: var(--navy);
}

/* Factories */
.aa-pl-factories { margin: 48px 0; }
.aa-pl-factories h3 { font-size: 1em; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--light-grey); }
.aa-pl-factory-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; }
.aa-pl-factory-card {
    background: var(--offwhite);
    border: 1px solid var(--light-grey);
    border-left: 3px solid var(--gold);
    padding: 18px 20px;
    border-radius: var(--radius);
}
.aa-pl-factory-country { font-weight: 700; color: var(--navy); font-size: 0.88em; margin-bottom: 4px; }
.aa-pl-factory-detail { font-size: 0.78em; color: var(--mid-grey); line-height: 1.5; }

/* Gallery strip */
.aa-pl-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 6px; margin: 32px 0; }
.aa-pl-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); }

/* Quote section on product line page */
.aa-pl-quote-section {
    background: var(--offwhite);
    border-top: 3px solid var(--gold);
    padding: 56px 0;
}

/* ═══════════════════════════════════════════════════════════
   QUOTE FORM (GLOBAL)
═══════════════════════════════════════════════════════════ */
.aa-quote-form-wrap { max-width: 680px; }
.aa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aa-form-group { margin-bottom: 18px; }
.aa-form-group label {
    display: block;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 600;
}
.aa-form-group input,
.aa-form-group select,
.aa-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 0.9em;
    font-family: var(--font-sans);
    color: var(--dark-grey);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.aa-form-group input:focus,
.aa-form-group select:focus,
.aa-form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.aa-form-group textarea { resize: vertical; min-height: 120px; }
.aa-form-note { font-size: 0.75em; color: var(--mid-grey); margin-top: 8px; }
.aa-form-success {
    background: #ecfdf5; border-left: 4px solid var(--gold);
    padding: 16px 20px; font-size: 0.9em; color: var(--navy);
    border-radius: var(--radius);
}
.aa-form-error {
    background: #fef2f2; border-left: 4px solid #ef4444;
    padding: 12px 16px; font-size: 0.85em; color: #b91c1c;
    border-radius: var(--radius); margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer, #colophon {
    background: var(--navy) !important;
    color: rgba(255,255,255,0.65) !important;
    border-top: 2px solid var(--gold) !important;
}
.ast-footer-copyright,
.ast-footer-copyright a { color: rgba(255,255,255,0.45) !important; font-size: 0.78em; }
.site-footer a { color: rgba(255,255,255,0.65) !important; }
.site-footer a:hover { color: var(--gold-light) !important; }
.widget-title { color: var(--white) !important; font-size: 0.8em !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .aa-products-grid { grid-template-columns: repeat(3,1fr); }
    .aa-process-grid { grid-template-columns: repeat(3,1fr); }
    .aa-process-grid::before { display: none; }
}
@media (max-width: 768px) {
    .aa-products-grid { grid-template-columns: repeat(2,1fr); }
    .aa-pl-specs { grid-template-columns: repeat(2,1fr); }
    .aa-hero { min-height: 480px; }
    .aa-hero-content { padding: 60px 20px; }
    .aa-section { padding: 56px 0; }
    .aa-container { padding: 0 20px; }
    .aa-form-row { grid-template-columns: 1fr; }
    .aa-stat { padding: 10px 20px; }
}
@media (max-width: 480px) {
    .aa-products-grid { grid-template-columns: repeat(2,1fr); gap: 1px; }
    .aa-hero h1 { font-size: 1.7em; }
    .aa-countries-grid { gap: 28px; }
    .aa-process-grid { grid-template-columns: repeat(2,1fr); }
}
