/* ============================================
   FFCG - Modern Business Consulting Website
   Mobile-first responsive design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors - Deep navy + teal accent */
    --color-primary: #0f2b46;
    --color-primary-light: #1a3d5c;
    --color-primary-dark: #091d30;
    --color-accent: #00b4d8;
    --color-accent-dark: #0096b7;
    --color-accent-light: #90e0ef;
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Sizes */
    --container-max: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Safe areas for notched phones (iPhone X+) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

ul, ol { list-style: none; }

address { font-style: normal; }

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: var(--color-white);
}

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

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 43, 70, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(15, 43, 70, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

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

.nav-link.active {
    background: rgba(0, 180, 216, 0.2);
    color: var(--color-accent-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

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

/* Mobile Navigation */
@media (max-width: 899px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0.5rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 43, 70, 0.92) 0%,
        rgba(15, 43, 70, 0.75) 50%,
        rgba(0, 150, 183, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--color-accent);
    display: inline;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

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

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.35);
}

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

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =====================
   SECTIONS
   ===================== */
section {
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    margin-top: 0.75rem;
    color: var(--color-gray-500);
    font-size: 1.1rem;
}

.content-section {
    padding: 4rem 0 2rem;
}

.content-narrow {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* =====================
   SERVICES GRID (Homepage)
   ===================== */
.services {
    padding: 5rem 0;
    background: var(--color-gray-50);
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    color: inherit;
}

.service-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-gray-500);
    flex: 1;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: gap var(--transition);
}

.service-card:hover .card-link {
    gap: 0.6rem;
}

/* =====================
   ABOUT / STATS SECTION (Homepage)
   ===================== */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-content h2 {
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.check-list {
    margin-bottom: 2rem;
}

.check-list li {
    padding: 0.4rem 0 0.4rem 2rem;
    position: relative;
    color: var(--color-gray-600);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17L4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =====================
   PAGE HERO (Subpages)
   ===================== */
.page-hero {
    position: relative;
    padding: 10rem 0 4rem;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-overlay {
    background: linear-gradient(
        to top,
        rgba(15, 43, 70, 0.95) 0%,
        rgba(15, 43, 70, 0.6) 100%
    );
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.page-hero-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    max-width: 600px;
    font-weight: 300;
}

/* =====================
   STRATEGY ELEMENTS
   ===================== */
.strategy-elements {
    padding: 5rem 0;
    background: var(--color-gray-50);
}

.elements-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .elements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.element-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.element-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.element-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.element-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.element-card p {
    color: var(--color-gray-500);
    font-size: 0.9rem;
}

/* =====================
   PROCESS STEPS
   ===================== */
.process-section {
    padding: 5rem 0;
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.process-step:last-child {
    border-bottom: none;
}

.step-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-gray-500);
}

/* =====================
   IMPROVEMENT AREAS
   ===================== */
.improvement-areas {
    padding: 5rem 0;
    background: var(--color-gray-50);
}

.areas-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 600px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.area-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.area-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-accent-dark);
    border: 1px solid var(--color-gray-200);
    transition: background var(--transition), color var(--transition);
}

.area-card:hover .area-icon {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.area-card h3 {
    margin-bottom: 0.75rem;
}

.area-card p {
    color: var(--color-gray-500);
    font-size: 0.9rem;
}

/* =====================
   PROJECTS / INNOVATIONS
   ===================== */
.projects-section {
    padding: 5rem 0;
    background: var(--color-gray-50);
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-body {
    padding: 1.5rem;
}

.project-body h3 {
    margin-bottom: 0.5rem;
    color: var(--color-accent-dark);
}

.project-body p {
    color: var(--color-gray-500);
    font-size: 0.9rem;
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
    }
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.info-item svg {
    flex-shrink: 0;
    color: var(--color-accent-dark);
    margin-top: 0.2rem;
}

.info-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--color-gray-500);
    font-size: 0.9rem;
}

.info-item a {
    color: var(--color-gray-500);
}

.info-item a:hover {
    color: var(--color-accent);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--color-gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
}

.contact-form-wrap h2 {
    margin-bottom: 1.5rem;
}

/* Honeypot - visually hidden */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-gray-700);
    margin-bottom: 0.4rem;
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-gray-800);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-400);
}

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

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.form-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background: var(--color-gray-900);
    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
    }
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col p,
.footer-col address p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-accent-light);
}

.business-hours {
    margin-top: 1rem;
}

.business-hours p {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.partner-list li {
    margin-bottom: 0.4rem;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =====================
   SCROLL TO TOP BUTTON
   ===================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* =====================
   ANIMATIONS (Intersection Observer)
   ===================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.4s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   MOBILE TOUCH & SAFE AREAS
   ===================== */

/* Minimum 48px touch targets (Google recommendation) */
@media (pointer: coarse) {
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 48px;
    }

    .footer-nav a,
    .partner-list a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }

    .form-group input,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Disable hover effects on touch */
    .service-card:hover,
    .element-card:hover,
    .area-card:hover,
    .project-card:hover,
    .stat-card:hover {
        transform: none;
    }
}

/* Safe area padding for notched devices */
.site-header .container {
    padding-left: max(1.25rem, var(--safe-left));
    padding-right: max(1.25rem, var(--safe-right));
}

.footer-bottom .container {
    padding-bottom: max(1.25rem, var(--safe-bottom));
}

.scroll-top {
    bottom: max(2rem, calc(var(--safe-bottom) + 1rem));
    right: max(2rem, calc(var(--safe-right) + 1rem));
}

/* Active states for touch feedback */
@media (hover: none) {
    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .service-card:active {
        transform: scale(0.98);
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .page-hero {
        min-height: 300px;
        padding: 7rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Small phone (< 375px) adjustments */
@media (max-width: 374px) {
    .container {
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        text-align: center;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }
}

/* =====================
   BREADCRUMB (subpages)
   ===================== */
.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 0.25rem;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--color-accent-light);
}

.breadcrumb span[aria-current] {
    color: rgba(255, 255, 255, 0.5);
}

/* =====================
   PRINT STYLES
   ===================== */
@media print {
    .site-header,
    .nav-toggle,
    .scroll-top,
    .hero-cta,
    .cta-section {
        display: none !important;
    }

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

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-overlay {
        background: none;
    }

    .hero-title,
    .page-hero h1 {
        color: #000;
    }
}

/* =====================
   PREFERS REDUCED MOTION
   ===================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-bg {
        animation: none;
        transform: scale(1);
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
}
