/*
Theme Name: YA Engineering
Theme URI: https://young-and-associates.com
Author: Young & Associates Engineering Consultants
Description: Custom theme for Young & Associates — multidiscipline engineering consultancy and online shop.
Version: 1.1.0
Text Domain: ya-engineering
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ==========================================================================
   0. CSS Custom Properties — Design System
   ========================================================================== */
:root {
    /* Navy palette — extracted from logo */
    --ya-navy: #1a2744;
    --ya-navy-dark: #0e1829;
    --ya-navy-mid: #243352;
    --ya-navy-light: #2f4265;
    --ya-navy-pale: #3d5580;

    /* Gold accent — professional authority */
    --ya-gold: #c8a248;
    --ya-gold-light: #d9bb6e;
    --ya-gold-dark: #a68432;
    --ya-gold-pale: #f0e6c8;

    /* Neutrals */
    --ya-white: #ffffff;
    --ya-off-white: #f8f9fb;
    --ya-gray-100: #f1f3f7;
    --ya-gray-200: #e2e6ed;
    --ya-gray-300: #c9cfdb;
    --ya-gray-400: #9aa3b4;
    --ya-gray-500: #6b7489;
    --ya-gray-600: #4a5468;
    --ya-gray-700: #374151;
    --ya-gray-800: #1f2937;

    /* Semantic */
    --ya-text: #1c2436;
    --ya-text-light: #5a6478;
    --ya-text-muted: #8b95a8;
    --ya-success: #0d9f6e;
    --ya-error: #dc2626;
    --ya-link: var(--ya-gold-dark);

    /* Typography */
    --ya-font-heading: 'Outfit', 'Arial', sans-serif;
    --ya-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --ya-container: 1200px;
    --ya-container-narrow: 800px;
    --ya-radius: 5px;
    --ya-radius-lg: 10px;

    /* Effects */
    --ya-shadow: 0 2px 12px rgba(26, 39, 68, 0.06);
    --ya-shadow-md: 0 4px 20px rgba(26, 39, 68, 0.10);
    --ya-shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.14);
    --ya-shadow-gold: 0 4px 20px rgba(200, 162, 72, 0.20);
    --ya-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ya-transition-fast: all 0.15s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ya-font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ya-text);
    background: var(--ya-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ya-link); text-decoration: none; transition: var(--ya-transition-fast); }
a:hover { color: var(--ya-gold); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ya-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ya-navy);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
ul, ol { list-style: none; }

/* ==========================================================================
   2. Layout
   ========================================================================== */
.container {
    max-width: var(--ya-container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--ya-container-narrow);
}

/* Section spacing */
.page-section {
    padding: 80px 0;
}

.page-section--alt {
    background: var(--ya-off-white);
}

.page-section--navy {
    background: var(--ya-navy);
    color: var(--ya-white);
}

.page-section--navy h2,
.page-section--navy h3,
.page-section--navy h4 {
    color: var(--ya-white);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--ya-gold);
}

.section-header p {
    max-width: 620px;
    margin: 24px auto 0;
    color: var(--ya-text-light);
    font-size: 1.05rem;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ya-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: var(--ya-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--ya-transition);
    text-transform: uppercase;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: var(--ya-gold);
    color: var(--ya-navy-dark);
    border-color: var(--ya-gold);
}

.btn-primary:hover {
    background: var(--ya-gold-light);
    border-color: var(--ya-gold-light);
    color: var(--ya-navy-dark);
    box-shadow: var(--ya-shadow-gold);
}

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

.btn-outline:hover {
    background: var(--ya-white);
    color: var(--ya-navy);
    border-color: var(--ya-white);
}

/* On light backgrounds (404 page, page sections) use navy outline */
.page-section .btn-outline,
.error404 .btn-outline {
    color: var(--ya-navy);
    border-color: var(--ya-navy);
}

.page-section .btn-outline:hover,
.error404 .btn-outline:hover {
    background: var(--ya-navy);
    color: var(--ya-white);
    border-color: var(--ya-navy);
}

.btn-navy {
    background: var(--ya-navy);
    color: var(--ya-white);
    border-color: var(--ya-navy);
}

.btn-navy:hover {
    background: var(--ya-navy-mid);
    border-color: var(--ya-navy-mid);
    color: var(--ya-white);
}

/* ==========================================================================
   4. Top Bar
   ========================================================================== */
.top-bar {
    background: var(--ya-navy-dark);
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    padding: 8px 0;
    letter-spacing: 0.01em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar svg { width: 14px; height: 14px; opacity: 0.7; }

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.top-bar a:hover { color: var(--ya-gold-light); }

/* ==========================================================================
   5. Site Header
   ========================================================================== */
.site-header {
    background: var(--ya-white);
    box-shadow: var(--ya-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    transition: padding 0.3s ease;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-logo img {
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

/* Compact header on scroll */
.site-header.is-scrolled .header-inner {
    padding: 6px 0;
}

.site-header.is-scrolled .site-logo img {
    height: 44px;
}

.site-header.is-scrolled .logo-text .business-name {
    font-size: 0.95rem;
}

.site-header.is-scrolled .logo-text .tagline {
    font-size: 0.72rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.business-name {
    font-family: var(--ya-font-primary);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ya-navy);
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.tagline {
    font-size: 0.78rem;
    color: var(--ya-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    font-family: var(--ya-font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ya-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    border-radius: var(--ya-radius);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--ya-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover { color: var(--ya-navy); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--ya-navy);
}

.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    transform: scaleX(1);
}

/* Header CTA */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ya-font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 24px;
    background: var(--ya-gold);
    color: var(--ya-navy-dark);
    border-radius: var(--ya-radius);
    transition: var(--ya-transition);
}

.btn-contact svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn-contact:hover { background: var(--ya-gold-light); box-shadow: var(--ya-shadow-gold); color: var(--ya-navy-dark); }
.btn-contact:hover svg { transform: translateX(3px); }

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--ya-navy);
    border-radius: 2px;
    transition: var(--ya-transition);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   6. Page Hero
   ========================================================================== */
.page-hero {
    background: var(--ya-navy);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture overlay */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-hero h1 {
    color: var(--ya-white);
    position: relative;
    z-index: 1;
}

.page-hero h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--ya-gold);
    margin-top: 16px;
}

.page-hero--shop h1 { margin-bottom: 0; }

/* ==========================================================================
   7. Hero Section (Homepage)
   ========================================================================== */
.hero {
    background: var(--ya-navy);
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Blueprint grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,162,72,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,162,72,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Diagonal accent stripe */
.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 45%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(200,162,72,0.05) 40%, rgba(200,162,72,0.08) 50%, transparent 60%);
    transform: rotate(-12deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ya-font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--ya-gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}

.hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--ya-gold);
}

.hero h1 {
    color: var(--ya-white);
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--ya-gold);
}

.hero-text {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

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

/* ==========================================================================
   8. Service Cards
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--ya-white);
    border-radius: var(--ya-radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--ya-gray-200);
    transition: var(--ya-transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ya-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: var(--ya-gray-300);
    box-shadow: var(--ya-shadow-md);
    transform: translateY(-3px);
}

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

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--ya-navy);
    color: var(--ya-gold);
    border-radius: var(--ya-radius);
    margin-bottom: 20px;
}

.service-card-icon svg { width: 24px; height: 24px; }

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--ya-text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--ya-gray-100);
    color: var(--ya-gray-600);
    border-radius: 20px;
    letter-spacing: 0.01em;
}

/* --- Service Detail Cards (Services page expand/collapse) --- */
.services-grid--full {
    grid-template-columns: repeat(3, 1fr);
}

.service-detail-card {
    background: var(--ya-white);
    border-radius: var(--ya-radius-lg);
    padding: 36px 28px 28px;
    border: 1px solid var(--ya-gray-200);
    transition: var(--ya-transition);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ya-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-detail-card .service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--ya-navy);
    color: var(--ya-gold);
    border-radius: var(--ya-radius);
    margin-bottom: 20px;
}

.service-detail-card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-detail-card p {
    font-size: 0.9rem;
    color: var(--ya-text-light);
    line-height: 1.65;
    margin-bottom: 14px;
}

.service-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--ya-gray-200);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: var(--ya-transition-fast);
    margin-top: 8px;
    color: var(--ya-gray-600);
}

.service-card-toggle:hover {
    border-color: var(--ya-gold);
    color: var(--ya-gold);
}

.service-card-toggle svg {
    transition: transform 0.3s ease;
}

.service-detail-card.is-expanded .service-card-toggle svg {
    transform: rotate(180deg);
}

.service-card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 0;
    border-top: 0 solid transparent;
}

.service-detail-card.is-expanded .service-card-detail {
    max-height: 200px;
    opacity: 1;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--ya-gray-200);
}

/* Small button variant */
.btn--sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

/* ==========================================================================
   9. About Snippet (Homepage)
   ========================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h2 { margin-bottom: 20px; }

.about-text p {
    color: var(--ya-text-light);
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
    padding-top: 28px;
    border-top: 1px solid var(--ya-gray-200);
}

.stat-item strong {
    display: block;
    font-family: var(--ya-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ya-gold);
    line-height: 1;
}

.stat-item span {
    font-size: 0.82rem;
    color: var(--ya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    background: var(--ya-gray-100);
    border-radius: var(--ya-radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ya-gray-400);
    font-size: 0.9rem;
    border: 2px dashed var(--ya-gray-300);
}

.about-feature-panel {
    background: linear-gradient(135deg, var(--ya-navy) 0%, var(--ya-navy-light) 100%);
    border-radius: var(--ya-radius-lg);
    padding: 2.5rem 2rem;
    color: var(--ya-white);
    position: relative;
    overflow: hidden;
}

.about-feature-panel::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(200, 162, 72, 0.08);
    border-radius: 50%;
}

.about-feature-panel::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(200, 162, 72, 0.06);
    border-radius: 50%;
}

.afp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(200, 162, 72, 0.15);
    border-radius: 16px;
    color: var(--ya-accent);
    margin-bottom: 1.25rem;
}

.about-feature-panel h3 {
    color: var(--ya-white);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.afp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.afp-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.afp-list li svg {
    color: var(--ya-accent);
    flex-shrink: 0;
}

/* ==========================================================================
   10. CTA Banner
   ========================================================================== */
.cta-banner {
    background: var(--ya-navy);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,162,72,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,162,72,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--ya-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-banner .btn { position: relative; z-index: 1; }

/* ==========================================================================
   11. Credentials Strip
   ========================================================================== */
.credentials {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.credential-item {
    text-align: center;
}

.credential-item strong {
    display: block;
    font-family: var(--ya-font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--ya-navy);
}

.credential-item span {
    font-size: 0.82rem;
    color: var(--ya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   12. Featured Products (Homepage)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--ya-white);
    border-radius: var(--ya-radius-lg);
    border: 1px solid var(--ya-gray-200);
    overflow: hidden;
    transition: var(--ya-transition);
}

.product-card:hover {
    box-shadow: var(--ya-shadow-md);
    transform: translateY(-2px);
}

.product-card-image {
    aspect-ratio: 1;
    background: var(--ya-gray-100);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 18px 20px;
}

.product-card-body h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-card .price {
    font-family: var(--ya-font-heading);
    font-weight: 700;
    color: var(--ya-gold-dark);
    font-size: 1.1rem;
}

.product-card .price del {
    color: var(--ya-gray-400);
    font-weight: 400;
    font-size: 0.88rem;
    margin-right: 6px;
}

/* ==========================================================================
   13. Contact Form
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--ya-font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ya-gray-700);
    margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--ya-gold);
    box-shadow: 0 0 0 3px rgba(200, 162, 72, 0.12);
}

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

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: var(--ya-radius);
    transition: var(--ya-transition);
    background: var(--ya-white);
}

.file-upload-wrapper:hover {
    border-color: var(--ya-accent);
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: var(--ya-gray);
    font-size: 0.92rem;
    pointer-events: none;
}

.file-upload-icon {
    display: flex;
    color: var(--ya-accent);
}

.file-upload-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #f0fdf4;
    border-radius: var(--ya-radius);
}

.file-upload-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ya-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-remove {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ya-gray);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--ya-transition);
    flex-shrink: 0;
}

.file-upload-remove:hover {
    background: #fee2e2;
    color: #991b1b;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: var(--ya-text-light);
    margin-top: 6px;
}

.form-message {
    padding: 14px 20px;
    border-radius: var(--ya-radius);
    font-size: 0.92rem;
    font-weight: 500;
    margin-top: 20px;
    display: none;
}

.form-message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.form-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* ==========================================================================
   14. About Page
   ========================================================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.qualifications-list {
    margin: 24px 0;
}

.qualifications-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--ya-text-light);
}

.qualifications-list li svg {
    color: var(--ya-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.career-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.career-card {
    background: var(--ya-white);
    border: 1px solid var(--ya-gray-200);
    border-radius: var(--ya-radius-lg);
    padding: 28px 24px;
    transition: var(--ya-transition);
}

.career-card:hover {
    border-color: var(--ya-gold-pale);
    box-shadow: var(--ya-shadow);
}

.career-card h4 {
    color: var(--ya-navy);
    margin-bottom: 8px;
}

.career-card p {
    font-size: 0.9rem;
    color: var(--ya-text-light);
    margin-bottom: 0;
}

.career-card .project-value {
    font-family: var(--ya-font-heading);
    font-weight: 700;
    color: var(--ya-gold-dark);
    font-size: 0.82rem;
    display: block;
    margin-top: 8px;
}

/* ==========================================================================
   15. Contact Page
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--ya-off-white);
    border-radius: var(--ya-radius-lg);
    border: 1px solid var(--ya-gray-200);
}

.contact-info-card .icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ya-navy);
    color: var(--ya-gold);
    border-radius: var(--ya-radius);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.88rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.92rem;
    color: var(--ya-text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer {
    background: var(--ya-navy-dark);
    color: rgba(255,255,255,0.7);
}

.footer-main {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-family: var(--ya-font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ya-white);
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
}

.footer-col h4 {
    font-family: var(--ya-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ya-gold);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: var(--ya-transition-fast);
}

.footer-col ul a:hover {
    color: var(--ya-white);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px !important;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.footer-abn {
    font-size: 0.78rem !important;
    margin-top: 16px !important;
    opacity: 0.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-legal a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: var(--ya-transition);
}

.footer-legal a:hover {
    color: var(--ya-accent);
}

/* Terms & Conditions page */
.terms-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.terms-content ul {
    margin: 0.75rem 0 1rem 1.5rem;
}

.terms-content ul li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.terms-content .terms-updated {
    color: var(--ya-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.terms-content .terms-contact {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.terms-content .terms-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-content .terms-contact li svg {
    color: var(--ya-navy);
    flex-shrink: 0;
}

/* ==========================================================================
   17. WooCommerce Overrides
   ========================================================================== */

/* Store layout */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
}

.shop-sidebar {
    border-left: 1px solid var(--ya-gray-200);
    padding-left: 40px;
}

.shop-sidebar .widget {
    margin-bottom: 32px;
}

.shop-sidebar .widget-title {
    font-family: var(--ya-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ya-navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ya-gold);
}

/* WooCommerce product grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.woocommerce ul.products li.product {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--ya-white);
    border: 1px solid var(--ya-gray-200);
    border-radius: var(--ya-radius-lg);
    overflow: hidden;
    transition: var(--ya-transition);
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--ya-shadow-md);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--ya-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ya-navy);
    padding: 14px 18px 4px;
}

.woocommerce ul.products li.product .price {
    padding: 0 18px;
    font-family: var(--ya-font-heading);
    font-weight: 700;
    color: var(--ya-gold-dark);
}

.woocommerce ul.products li.product .button {
    display: block;
    margin: 12px 18px 18px;
    text-align: center;
    padding: 10px 20px;
    background: var(--ya-navy);
    color: var(--ya-white);
    border: none;
    border-radius: var(--ya-radius);
    font-family: var(--ya-font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: var(--ya-transition);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--ya-gold);
    color: var(--ya-navy-dark);
}

/* Single product page */
.woocommerce div.product .product_title {
    font-family: var(--ya-font-heading);
    font-weight: 800;
    color: var(--ya-navy);
}

.woocommerce div.product p.price {
    font-family: var(--ya-font-heading);
    font-weight: 700;
    color: var(--ya-gold-dark);
    font-size: 1.4rem;
}

.woocommerce div.product .single_add_to_cart_button {
    background: var(--ya-gold);
    color: var(--ya-navy-dark);
    border: none;
    border-radius: var(--ya-radius);
    font-family: var(--ya-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 36px;
    cursor: pointer;
    transition: var(--ya-transition);
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--ya-gold-light);
    box-shadow: var(--ya-shadow-gold);
}

/* Cart & Checkout */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #payment {
    background: var(--ya-off-white);
    border-radius: var(--ya-radius-lg);
    padding: 28px;
    border: 1px solid var(--ya-gray-200);
}

.woocommerce table.shop_table {
    border: 1px solid var(--ya-gray-200);
    border-radius: var(--ya-radius);
    overflow: hidden;
}

.woocommerce table.shop_table th {
    font-family: var(--ya-font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    background: var(--ya-gray-100);
    color: var(--ya-navy);
}

.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty {
    padding: 10px 14px;
    border: 1.5px solid var(--ya-gray-200);
    border-radius: var(--ya-radius);
    font-family: var(--ya-font-body);
    font-size: 0.92rem;
}

/* WooCommerce notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-top-color: var(--ya-gold);
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: var(--ya-gold);
}

.woocommerce .woocommerce-error {
    border-top-color: var(--ya-error);
}

/* Category cards on shop page */
.shop-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.category-card {
    background: var(--ya-off-white);
    border: 1px solid var(--ya-gray-200);
    border-radius: var(--ya-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--ya-transition);
}

.category-card:hover {
    border-color: var(--ya-gold-pale);
    box-shadow: var(--ya-shadow);
    transform: translateY(-2px);
}

.category-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ya-navy);
    color: var(--ya-gold);
    border-radius: var(--ya-radius);
    margin: 0 auto 16px;
}

.category-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.category-card p { font-size: 0.88rem; color: var(--ya-text-light); margin-bottom: 0; }

/* ==========================================================================
   18. Page Content (from editor)
   ========================================================================== */
.page-content h2 { margin: 2rem 0 1rem; }
.page-content h3 { margin: 1.5rem 0 0.8rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul,
.page-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5rem; }
.page-content img { border-radius: var(--ya-radius); margin: 1.5rem 0; }

/* ==========================================================================
   19. Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }

/* ==========================================================================
   20. Responsive
   ========================================================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .career-highlights { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr 220px; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 768px) {
    .page-section { padding: 56px 0; }
    .hero { padding: 72px 0 80px; min-height: auto; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
    .site-logo img { height: 70px; }
    .business-name { font-size: 1.1rem; }
    .tagline { font-size: 0.7rem; }
    .header-inner { min-height: 80px; }

    /* Mobile nav */
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--ya-white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.is-open { right: 0; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--ya-gray-100);
    }

    .main-nav a::after { display: none; }

    .header-cta { display: none; }

    /* Layout stacks */
    .about-split { grid-template-columns: 1fr; gap: 40px; }
    .about-intro { grid-template-columns: 1fr; gap: 40px; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .shop-layout { grid-template-columns: 1fr; }

    .shop-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--ya-gray-200);
        padding-top: 32px;
    }

    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-categories { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 576px) {
    .hero { padding: 56px 0 64px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .woocommerce ul.products { grid-template-columns: 1fr; }

    .about-stats { flex-direction: column; gap: 20px; }
    .credentials { gap: 28px; }

    .top-bar-left,
    .top-bar-right { gap: 12px; }

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .section-header { margin-bottom: 40px; }
    .section-header p { font-size: 0.95rem; }
}

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
