/* ========================================
   Yatecway - Core Styles
   Software Solutions for SA Businesses
   ======================================== */

/* ----------------------------------------
   Variables
   ---------------------------------------- */
:root {
    /* Brand Colors - Yatecway logo */
    --ytw-orange: #FD6402;
    --ytw-orange-dark: #E05800;
    --ytw-black: #000000;

    /* Colors - Black & Orange Theme (names kept from the old navy/gold theme) */
    --ut-navy: #111111;        /* near-black: headings, primary buttons */
    --ut-navy-light: #2A2A2A;
    --ut-navy-dark: #000000;   /* black: header, footer */
    --ut-gold: #FD6402;        /* brand orange */
    --ut-gold-light: #FF9A5C;
    --ut-gold-dark: #E05800;
    --ut-white: #FFFFFF;
    --ut-offwhite: #FAFAFA;
    --ut-gray-100: #F4F4F5;
    --ut-gray-200: #E4E4E7;
    --ut-gray-300: #D4D4D8;
    --ut-gray-400: #A1A1AA;
    --ut-gray-500: #71717A;

    /* Gradients */
    --gradient-primary: linear-gradient(145deg, var(--ut-navy) 0%, var(--ut-navy-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--ut-gold) 0%, var(--ut-gold-light) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-md: 1.125rem;    /* 18px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 1.875rem;   /* 30px */
    --text-3xl: 2.25rem;    /* 36px */
    --text-4xl: 3rem;       /* 48px */
    --text-5xl: 3.75rem;    /* 60px */
    
    /* Spacing */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 1rem;       /* 16px */
    --space-md: 1.5rem;     /* 24px */
    --space-lg: 2rem;       /* 32px */
    --space-xl: 3rem;       /* 48px */
    --space-2xl: 4rem;      /* 64px */
    --space-3xl: 6rem;      /* 96px */
    
    /* Container */
    --container-width: 1280px;
    --container-padding: 2rem;
    
    /* Borders */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1.5rem;     /* 24px */
    --radius-xl: 2rem;       /* 32px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 200ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

/* Keep jump targets (e.g. #services) clear of the sticky header */
[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ut-navy-dark);
    background-color: var(--ut-offwhite);
    overflow-x: hidden;
}

/* ----------------------------------------
   Container
   ---------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--ut-navy);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xs);
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--ut-gray-400);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast) var(--ease-out);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--ut-navy);
    color: var(--ut-white);
}

.btn-primary:hover {
    background-color: var(--ut-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--ut-navy);
    color: var(--ut-navy);
}

.btn-outline:hover {
    background-color: var(--ut-navy);
    color: var(--ut-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--ut-white);
    color: var(--ut-white);
}

.btn-outline-light:hover {
    background-color: var(--ut-white);
    color: var(--ut-navy);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-md);
}

.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.site-header {
    background-color: var(--ytw-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* Slides up out of view while scrolling down (see initHeaderScroll in main.js) */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

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

.main-nav {
    margin-left: auto;
    margin-right: var(--space-lg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-list a {
    text-decoration: none;
    color: var(--ut-white);
    font-weight: 500;
    transition: color var(--transition-fast) var(--ease-out);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ytw-orange);
    transition: width var(--transition-base) var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--ut-white);
    font-weight: 600;
}

/* Primary buttons on dark backgrounds use the brand orange */
.site-header .btn-primary,
.cta-card .btn-primary,
.featured-project .btn-primary {
    background-color: var(--ytw-orange);
    color: var(--ut-white);
}

.site-header .btn-primary:hover,
.cta-card .btn-primary:hover,
.featured-project .btn-primary:hover {
    background-color: var(--ytw-orange-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu {
    display: none;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ut-white);
    transition: all var(--transition-fast) var(--ease-out);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-badge {
    margin-bottom: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge-pulse {
    background: var(--ut-gold);
    color: var(--ut-navy-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    display: inline-block;
    animation: pulse 2s infinite;
}

.badge-countdown {
    background: rgba(253, 100, 2, 0.1);
    color: var(--ut-gold-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    border: 1px solid var(--ut-gold-light);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-line {
    display: block;
    color: var(--ut-navy);
}

.hero-line.accent {
    color: var(--ut-gold-dark);
    position: relative;
    display: inline-block;
}

.hero-line.accent::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(253, 100, 2, 0.2);
    z-index: -1;
}

.hero-text {
    font-size: var(--text-lg);
    color: var(--ut-gray-400);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ut-navy);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--ut-gray-400);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each shape's faint fill sits on ::before, under its picture */
.shape {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shape::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 0;
    right: 0;
    transform: rotate(15deg);
    animation: shapeDrift1 14s ease-in-out infinite alternate;
}

.shape-1::before {
    background: var(--gradient-primary);
    opacity: 0.1;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    animation: shapeBreathe 12s ease-in-out infinite alternate;
}

.shape-2::before {
    background: var(--ut-navy);
    opacity: 0.05;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 44%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: shapeDrift3 10s ease-in-out infinite alternate;
}

.shape-3::before {
    background: var(--gradient-accent);
    opacity: 0.14;
}

.shape-4 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: shapeSpin 160s linear infinite;
}

.shape-4::before {
    background: repeating-linear-gradient(45deg, var(--ut-navy) 0px, var(--ut-navy) 2px, transparent 2px, transparent 10px);
    opacity: 0.03;
}

/* Pictures inside the shapes (Python code, AI head, binary): one charcoal-and-orange
   duotone so they read as a set, dimmed to blend into the page. The tilted square and diamond turn their picture back upright
   and scale it up so the corners stay covered */
.shape-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.shape-1 .shape-img {
    transform: rotate(-15deg) scale(1.25);
}

.shape-3 .shape-img {
    transform: rotate(-45deg) scale(1.42);
}

@keyframes shapeDrift1 {
    from { transform: translateY(0) rotate(15deg); }
    to { transform: translateY(-12px) rotate(19deg); }
}

@keyframes shapeDrift3 {
    from { transform: translate(-50%, -50%) rotate(45deg); }
    to { transform: translate(-50%, calc(-50% + 10px)) rotate(51deg); }
}

@keyframes shapeBreathe {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}

@keyframes shapeSpin {
    to { transform: rotate(360deg); }
}

/* Visitors who ask for less motion get the same picture, standing still */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none;
    }
}

.price-float {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--ut-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.price-current {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ut-navy);
}

.price-old {
    font-size: var(--text-md);
    color: var(--ut-gray-400);
    text-decoration: line-through;
}

/* ----------------------------------------
   Services Section
   ---------------------------------------- */
.services {
    padding: var(--space-2xl) 0;
    background: var(--ut-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.service-card {
    background: var(--ut-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ut-gray-200);
    transition: all var(--transition-base) var(--ease-out);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ut-gold-light);
}

.service-card-wide {
    grid-column: span 2;
}

.card-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: rgba(17, 17, 17, 0.1);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    line-height: 1;
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    padding-right: var(--space-xl);
}

.card-desc {
    color: var(--ut-gray-400);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.card-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ut-gold-dark);
    margin-bottom: var(--space-md);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.card-features span {
    font-size: var(--text-xs);
    color: var(--ut-gray-400);
    background: var(--ut-gray-100);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--ut-navy);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: gap var(--transition-fast) var(--ease-out);
}

.card-link:hover {
    gap: var(--space-md);
}

/* ----------------------------------------
   Pricing Section
   ---------------------------------------- */
.pricing {
    padding: var(--space-2xl) 0;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tab-btn {
    padding: var(--space-sm) var(--space-xl);
    border: none;
    background: var(--ut-white);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--ut-gray-400);
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    border: 2px solid transparent;
}

.tab-btn.active {
    background: var(--ut-navy);
    color: var(--ut-white);
    box-shadow: var(--shadow-md);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.package-card {
    background: var(--ut-white);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ut-gray-200);
    position: relative;
}

.package-special {
    border: 2px solid var(--ut-gold);
    background: linear-gradient(145deg, #fff, #fff9f0);
    transform: scale(1.02);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ut-gold);
    color: var(--ut-navy-dark);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-xs);
    white-space: nowrap;
}

.package-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    text-align: center;
}

.package-price {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.price-current {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ut-navy);
}

.price-old {
    font-size: var(--text-sm);
    color: var(--ut-gray-400);
    text-decoration: line-through;
    margin-left: var(--space-xs);
}

.package-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.package-features li {
    padding: var(--space-xs) 0;
    color: var(--ut-gray-400);
    font-size: var(--text-sm);
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.app-tier {
    background: var(--ut-white);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ut-gray-200);
    position: relative;
    text-align: center;
}

.app-tier.popular {
    border: 2px solid var(--ut-gold);
    transform: scale(1.02);
}

.tier-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
    display: block;
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ut-gold);
    color: var(--ut-navy-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-xs);
}

.tier-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ut-navy);
    margin: var(--space-md) 0;
}

.tier-details {
    list-style: none;
    margin: var(--space-lg) 0;
    text-align: left;
}

.tier-details li {
    padding: var(--space-xs) 0;
    color: var(--ut-gray-400);
    font-size: var(--text-sm);
}

/* Add-ons */
.addons-section {
    background: var(--ut-white);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
    border: 1px solid var(--ut-gray-200);
}

.addons-toggle {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--ut-navy);
    font-size: var(--text-md);
}

.addons-toggle .chevron {
    transition: transform var(--transition-base) var(--ease-out);
}

.addons-toggle.active .chevron {
    transform: rotate(180deg);
}

.addons-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) var(--ease-out);
}

.addons-content.active {
    max-height: 500px;
}

.addons-grid {
    padding: 0 var(--space-lg) var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.addon-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm);
    border-bottom: 1px dashed var(--ut-gray-200);
}

.add-to-quote-addon {
    display: inline-block;
    margin-left: var(--space-xs);
    border: 1px solid var(--ut-navy);
    border-radius: var(--radius-full);
    color: var(--ut-navy);
    text-decoration: none;
    transition: all var(--transition-base);
}

.add-to-quote-addon:hover {
    background-color: var(--ut-navy);
    color: var(--ut-white);
}

/* Invoice Sample */
.invoice-sample {
    background: var(--ut-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
    border: 1px solid var(--ut-gray-200);
}

.invoice-sample h4 {
    margin-bottom: var(--space-md);
}

.invoice-lines {
    max-width: 400px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.invoice-row.total {
    font-weight: 700;
    color: var(--ut-navy);
    border-top: 2px solid var(--ut-gray-200);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
}

.invoice-note {
    margin-top: var(--space-md);
    color: var(--ut-gray-400);
    font-size: var(--text-sm);
    font-style: italic;
}

/* ----------------------------------------
   Tech Stack
   ---------------------------------------- */
.tech {
    padding: var(--space-2xl) 0;
    background: var(--ut-white);
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.tech-item {
    background: var(--ut-offwhite);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--ut-navy);
    border: 1px solid var(--ut-gray-200);
    transition: all var(--transition-fast) var(--ease-out);
}

.tech-item:hover {
    background: var(--ut-navy);
    color: var(--ut-white);
    border-color: var(--ut-navy);
    transform: scale(1.05);
}

/* ----------------------------------------
   Process Section
   ---------------------------------------- */
.process {
    padding: var(--space-2xl) 0;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-xl);
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--ut-navy);
    color: var(--ut-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-xl);
    margin: 0 auto var(--space-md);
}

.step h3 {
    margin-bottom: var(--space-xs);
    font-size: var(--text-lg);
}

.step p {
    color: var(--ut-gray-400);
    font-size: var(--text-sm);
    max-width: 200px;
    margin: 0 auto;
}

.step-arrow {
    font-size: var(--text-2xl);
    color: var(--ut-gold);
    font-weight: 300;
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta {
    padding: var(--space-2xl) 0;
}

.cta-card {
    background: var(--gradient-primary);
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--ut-white);
}

.cta-title {
    font-size: var(--text-3xl);
    color: var(--ut-white);
    margin-bottom: var(--space-sm);
}

.cta-text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
    background: var(--ut-navy-dark);
    color: var(--ut-white);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--ut-gray-400);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.footer-areas {
    color: var(--ut-gray-500);
    font-size: var(--text-xs);
    margin-top: calc(-1 * var(--space-md));
    margin-bottom: var(--space-lg);
}

/* Service card titles link to their service pages */
.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--ytw-orange);
}

/* Where I work (homepage) */
.reach {
    padding: var(--space-2xl) 0;
    background: var(--ut-white);
}

.reach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.reach-card {
    background: var(--ut-offwhite);
    border: 1px solid var(--ut-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.reach-card i {
    color: var(--ytw-orange);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.reach-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.reach-card p {
    color: var(--ut-gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Client reviews (Our Work page), filled in by reviews.js:
   a sideways-scrolling row, three cards in view */
.reviews {
    padding: var(--space-2xl) 0;
    --review-gap: var(--space-lg);
    --reviews-in-view: 3;
}

.reviews[hidden] {
    display: none;
}

.reviews-track {
    display: flex;
    gap: var(--review-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--ut-gray-200) transparent;
}

.reviews-track:focus-visible {
    outline: 2px solid var(--ytw-orange);
    outline-offset: 4px;
    border-radius: var(--radius-lg);
}

.review-card {
    flex: 0 0 calc((100% - (var(--reviews-in-view) - 1) * var(--review-gap)) / var(--reviews-in-view));
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--ut-white);
    border: 1px solid var(--ut-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.reviews-nav[hidden] {
    display: none;
}

.reviews-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ut-gray-200);
    background: var(--ut-white);
    color: var(--ut-navy);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reviews-arrow:hover:not(:disabled) {
    background: var(--ytw-orange);
    border-color: var(--ytw-orange);
    color: var(--ut-white);
}

.reviews-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.review-stars {
    color: var(--ytw-orange);
    font-size: var(--text-sm);
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.review-text {
    flex: 1;
    margin: 0 0 var(--space-md);
    color: var(--ut-gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.review-text::before {
    content: '\201C';
}

.review-text::after {
    content: '\201D';
}

.review-author {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--ut-gray-200);
    font-size: var(--text-sm);
}

.review-author span {
    color: var(--ut-gray-400);
    font-size: var(--text-xs);
}

.reviews-cta {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
}

.reviews-cta a {
    color: var(--ytw-orange);
    font-weight: 600;
}

.footer-legal {
    color: var(--ut-gray-500);
    font-size: var(--text-xs);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--ut-white);
    margin-bottom: var(--space-lg);
    font-size: var(--text-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--ut-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: var(--ut-gold);
}

.footer-contact p {
    margin-bottom: var(--space-sm);
    color: var(--ut-gray-400);
    font-size: var(--text-sm);
}

.footer-contact a {
    color: var(--ut-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
}

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

.footer-contact .social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-contact .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: var(--text-md);
}

.footer-contact .social-links a:hover {
    background: var(--ytw-orange);
    color: var(--ut-white);
}

/* ----------------------------------------
   Chat Widget
   ---------------------------------------- */
.chat-widget {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    cursor: pointer;
    color: var(--ut-white);
    text-decoration: none;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--ut-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    /* White ring keeps the button visible over the black footer */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), var(--shadow-lg);
    transition: all var(--transition-fast) var(--ease-out);
}

.chat-widget:hover .chat-icon {
    background: var(--ut-gold);
    transform: scale(1.1);
}

.chat-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--ut-navy);
    color: var(--ut-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.chat-widget:hover .chat-tooltip {
    opacity: 1;
    bottom: 80px;
}

/* ----------------------------------------
   Modal
   ---------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--ut-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    color: var(--ut-gray-400);
}

.modal-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}

.modal-content h3 {
    margin-bottom: var(--space-sm);
}

.modal-content p {
    color: var(--ut-gray-400);
    margin-bottom: var(--space-lg);
}

.modal-content a:not(.btn) {
    color: var(--ut-navy);
    font-weight: 600;
    text-decoration: none;
}

.modal-content a:not(.btn):hover {
    text-decoration: underline;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 100, 2, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(253, 100, 2, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253, 100, 2, 0);
    }
}