/* =========================================================
   Design System — Practical Digital Landing Page
   Direction: Warm, Clean, Earth-Tones (acquisition.com inspired)
   ========================================================= */

:root {
    /* === 1. Semantic Color Tokens === */
    /* Backgrounds */
    --color-bg-primary:     #F8F6F2;   /* Main page background */
    --color-bg-secondary:   #EDEAE4;   /* Secondary section background */
    --color-bg-card:        #FFFFFF;   /* Card background */
    --color-bg-card-hover:  #F4F1EC;   /* Card background on hover */

    /* Texts */
    --color-text-primary:   #1A1714;   /* High contrast main text */
    --color-text-secondary: #6B6460;   /* Moderate contrast secondary text */
    --color-text-muted:     #A09890;   /* Low contrast muted text */

    /* Accent & Interactions (Terracotta Accent) */
    --color-accent:         #B5634B;   /* Terracotta accent / CTA */
    --color-accent-hover:   #9A523D;   /* Accent hover state */
    --color-accent-light:   rgba(181, 99, 75, 0.1);
    --color-focus:          #B5634B;   /* Focus indicator for accessibility */

    /* Brand Neutral Accents (Warm Charcoal / Sand) */
    --color-neutral-accent: #2C2826;
    --color-sand:           #9C8E82;
    --color-sand-light:     rgba(156, 142, 130, 0.15);

    /* Borders */
    --color-border:         #DDD8D0;
    --color-border-strong:  #C0B8B0;

    /* === 2. Spacing Tokens === */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-xxl: 120px;
    
    /* Container Widths */
    --container-max-width: 1100px;
    --content-max-width: 800px;

    /* === 3. Typography & Transitions === */
    --font-sans: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-heading: 'Heebo', var(--font-sans);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.10);

    /* === 4. Backward Compatibility Mappings === */
    --bg-main:          var(--color-bg-primary);
    --bg-alt:           var(--color-bg-secondary);
    --bg-card:          var(--color-bg-card);
    --bg-card-hover:    var(--color-bg-card-hover);
    --text-primary:     var(--color-text-primary);
    --text-secondary:   var(--color-text-secondary);
    --text-muted:       var(--color-text-muted);
    --purple:           var(--color-accent);
    --purple-hover:     var(--color-accent-hover);
    --purple-light:     var(--color-accent-light);
    --border:           var(--color-border);
    --border-strong:    var(--color-border-strong);
    --sand:             var(--color-sand);
    --sand-light:       var(--color-sand-light);
    --accent:           var(--color-neutral-accent);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    font-family: var(--font-sans);
    line-height: 1.75; /* 1.6-1.8 optimal reading line-height */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.3; /* Swiss typographic tight line-height for headings */
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

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

/* === 5. Programmatic Accessibility & Focus Indicator === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

/* Skip Link style */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #FFFFFF;
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* === 6. Layout Utilities & Breathing Rule === */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section Breathing Rule */
section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
}

@media (min-width: 768px) {
    section {
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }
}

/* Optimal Reading Width */
.readable-text-block {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* =========================================================
   Badges & Labels
   ========================================================= */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    background-color: var(--sand-light);
    border: 1px solid rgba(156, 142, 130, 0.35);
    color: var(--sand);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =========================================================
   Section Typography
   ========================================================= */
.section-title {
    font-size: 2.625rem;
    font-weight: 300;
    margin-bottom: 1rem;
    max-width: 760px;
    line-height: 1.25;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 580px;
    margin-bottom: 4rem;
    line-height: 1.7;
    font-weight: 400;
}

/* =========================================================
   Buttons & CTA
   ========================================================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.primary-cta {
    background-color: var(--purple);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.3);
    letter-spacing: 0.01em;
    border-radius: 100px; /* pill shape — like Hormozi */
    padding: 1rem 2.75rem;
    font-size: 1.0625rem;
}

.primary-cta:hover {
    background-color: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29, 78, 216, 0.45);
}

.cta-subtext {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.875rem;
    font-weight: 400;
}

/* =========================================================
   Sticky Header
   ========================================================= */
/* =========================================================
   Sticky Header — Black background, white text (like acquisition.com)
   ========================================================= */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
    background-color: #111010;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* On scroll — slightly more opaque with blur */
.main-header.scrolled {
    background-color: rgba(15, 14, 14, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.125rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.main-header.scrolled .header-container {
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #FFFFFF;
}

.logo-grid-svg {
    width: 26px;
    height: 26px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    text-align: right;
    border-right: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-right: 0.6rem;
}

.logo-title {
    font-family: 'Secular One', 'Assistant', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.logo-subtitle {
    font-family: 'Assistant', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
    display: none;
}

@media (min-width: 768px) {
    .logo-subtitle {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.9rem;
    color: #FFFFFF;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--purple); /* Change to active accent on hover for better interaction */
}

.header-cta {
    background-color: #FFFFFF;
    border: none;
    color: #111010;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
}

.header-cta:hover {
    background-color: #E8E4DF;
    color: #111010;
}

/* =========================================================
   1. Hero Section — v5: Warm Minimalist + Abstract Sketch
   ========================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px; /* header height */
    background-color: var(--color-bg-primary, #F8F6F2);
    overflow: hidden;
    position: relative;
}

/* Photographic background layer (desktop/tablet only) */
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: url('hero-table.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    display: none; /* Hidden on mobile, shown on desktop/tablet */
}

/* Right-to-left gradient mask for blending and readability */
.hero-image-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(248, 246, 242, 0.97) 0%, rgba(248, 246, 242, 0.93) 20%, rgba(248, 246, 242, 0.4) 65%, rgba(248, 246, 242, 0) 100%);
    pointer-events: none;
}

/* Foreground Centered Container */
.hero-centered-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max-width, 1100px);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Text Content Panel */
.hero-text-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    color: var(--color-text-primary, #1A1714);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--color-text-primary, #1A1714);
    max-width: 550px;
    margin: 0 auto 2.5rem auto;
    font-weight: 500;
    line-height: 1.7;
}

.hero-mobile-image-card {
    display: block;
    width: 100%;
    max-width: 480px;
    margin-top: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.hero-mobile-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Warm CTA button — terracotta */
.hero-section .primary-cta {
    background-color: #B5634B;
    color: #FFFFFF;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.hero-section .primary-cta:hover {
    background-color: #9A523D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 99, 75, 0.25);
}

/* =========================================================
   Responsive overrides for hero
   ========================================================= */
@media (min-width: 768px) {
    .hero-section {
        padding: 0;
        min-height: 100vh;
    }
    
    .hero-image-bg {
        display: block;
    }
    
    .hero-text-panel {
        align-items: flex-start;
        text-align: right;
        max-width: 500px;
        margin-right: 0;
        margin-left: auto;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin: 0 0 2.5rem 0;
    }
    
    .hero-mobile-image-card {
        display: none;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 1.25rem;
    }
}

@media (max-width: 900px) and (max-width: 767px) {
    /* Kept for spacing consistency */
}



/* =========================================================
   2. Value / About Section
   ========================================================= */
.value-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.value-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.value-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.value-text p.highlight-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    border-right: 3px solid var(--sand);
    padding-right: 1.25rem;
    margin-top: 2rem;
}

.value-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background-color: var(--accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* =========================================================
   3. Services Section
   ========================================================= */
.services-section {
    background-color: var(--bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

/* Highlighted/featured card — purple border like Hormozi */
.service-card.highlight {
    border: 2px solid var(--purple);
    background-color: #FDFCFF; /* barely-there purple tint */
}

.service-card.highlight:hover {
    box-shadow: 0 12px 36px rgba(29, 78, 216, 0.16);
}

.service-badge-popular {
    position: absolute;
    top: -13px;
    right: 24px;
    background-color: var(--purple);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.service-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.055);
    transition: var(--transition);
    letter-spacing: -0.04em;
}

.service-card:hover .service-number {
    color: rgba(29, 78, 216, 0.12);
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    color: var(--purple);
    border-color: rgba(29, 78, 216, 0.3);
    background-color: var(--purple-light);
}

.service-icon {
    width: 22px;
    height: 22px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.service-subtitle-card {
    color: var(--sand);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
}

.service-deliverables {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.service-deliverables li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--sand);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.service-price {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-price::before {
    content: "₪";
    color: var(--sand);
    font-size: 1.25rem;
}

.service-price.custom-price::before {
    content: none;
}
/* =========================================================
   4. Portfolio / Case Studies Section
   ========================================================= */
.portfolio-section {
    background-color: #111010;
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-section .section-title {
    color: #FFFFFF;
    font-size: 2.85rem;
}

.portfolio-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.portfolio-card {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    background-color: #161514; /* darker background for higher contrast */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px; /* sharper, more structured corners (Swiss grid) */
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.portfolio-image-placeholder {
    background-color: rgba(255, 255, 255, 0.015);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 240px;
    overflow: hidden;
}

.portfolio-card:hover .portfolio-image-placeholder {
    background-color: rgba(255, 255, 255, 0.03);
}

.portfolio-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain; /* fits the entire screenshot without any cropping! */
    padding: var(--space-sm); /* elegant matte framing padding */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity var(--transition);
}

.portfolio-screenshot.main-image {
    opacity: 1;
}

.portfolio-screenshot.hover-image {
    opacity: 0;
}

/* On card hover, smoothly fade in the second image if present */
.portfolio-card:hover .portfolio-screenshot.hover-image {
    opacity: 1;
    z-index: 3;
}

/* Sibling selector: if a screenshot is successfully loaded (not hidden), hide the backup decorative SVG */
.portfolio-screenshot:not([style*="display: none"]) ~ .wood-visual,
.portfolio-screenshot:not([style*="display: none"]) ~ .map-visual,
.portfolio-screenshot:not([style*="display: none"]) ~ .hair-visual {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tech-stack-tags {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 2;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    background-color: #111010;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px; /* sharp rectangular tags for technical feel */
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.wood-visual, .map-visual, .hair-visual {
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.portfolio-card:hover .wood-visual,
.portfolio-card:hover .map-visual,
.portfolio-card:hover .hair-visual {
    color: var(--purple);
    transform: scale(1.06);
}

.portfolio-info {
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-project-title {
    font-size: 1.6rem;
    font-weight: 800; /* bold, heavy Swiss typography */
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* clean dividing line */
    padding-top: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 800; /* clear label distinction */
    color: var(--sand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* =========================================================
   5. Final CTA Section
   ========================================================= */
.final-cta-section {
    background-color: var(--bg-main);
    text-align: center;
}

.final-cta-container {
    max-width: 720px;
}

.final-cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.final-cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.75rem;
    line-height: 1.75;
    font-weight: 400;
}

.final-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta {
    padding: 1.1rem 3rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

.final-cta-actions .cta-subtext {
    max-width: 480px;
    line-height: 1.6;
    margin-top: 1.25rem;
}

/* =========================================================
   Footer
   ========================================================= */
.main-footer {
    padding: 2.5rem 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
}

.footer-note {
    font-size: 0.75rem;
    color: var(--border-strong);
}

.footer-links {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 1px dashed transparent;
}

.footer-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* =========================================================
   Floating WhatsApp CTA Button (FAB)
   ========================================================= */
.floating-cta-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 99;
    pointer-events: none;
}

.floating-cta-button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background-color: #25D366;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.32);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(16px) scale(0.95);
}

.floating-cta-button.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-cta-button:hover {
    background-color: #1fba58;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* =========================================================
   Responsive — Tablet (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .portfolio-card {
        grid-template-columns: 1fr;
    }

    .portfolio-image-placeholder {
        border-left: none;
        border-bottom: 1px solid var(--border);
        min-height: 200px;
    }

    .value-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* =========================================================
   Responsive — Mobile (≤768px)
   ========================================================= */
@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.25rem;
        font-weight: 700 !important; /* Emphasize subtitle text for legibility */
        text-shadow: 0 0 10px var(--color-bg-primary), 0 0 5px var(--color-bg-primary) !important; /* Halo effect to prevent background image clash */
    }

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

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

    .nav-menu {
        display: none;
    }

    .portfolio-info {
        padding: 1.75rem;
    }

    .final-cta-title {
        font-size: 2rem;
    }

    .floating-cta-container {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .floating-cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
        border-radius: 12px;
    }
}

/* =========================================================
   Hero Section — Secondary CTA Button (Outline Style)
   ========================================================= */
.hero-section .secondary-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: transparent;
    border: 2.5px solid var(--color-border-strong);
    color: var(--color-text-primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-section .secondary-cta:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-sand);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section .primary-cta,
    .hero-section .secondary-cta {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .main-footer {
        padding-bottom: 7.5rem !important; /* Prevents the floating mobile CTA from blocking the legal links */
    }
}

/* =========================================================
   5. Contact / Final CTA Section (Centered Layout)
   ========================================================= */
.final-cta-section {
    padding-top: var(--space-lg) !important; /* Compact padding to fit screen */
    padding-bottom: var(--space-lg) !important;
    text-align: center; /* Center text by default */
}

.contact-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-header {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.contact-form-centered {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2.5rem;
}

.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    height: 615px; /* Perfect height to fit the 720px scaled iframe without scrollbars */
    transition: var(--transition);
    display: block;
    position: relative;
}

.form-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.airtable-embed {
    display: block;
    width: 118%; /* Render wider so scale(0.85) makes it exactly 100% of the container (100 / 0.85) */
    height: 720px; /* Taller height before scale to completely eliminate internal scrollbars */
    transform: scale(0.85);
    transform-origin: top right; /* Pin to top-right for perfect RTL scaling */
    border-radius: 8px;
    border: none;
}

.alternative-contact-centered {
    margin-top: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.alternative-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.whatsapp-alt-btn {
    background-color: #25D366; /* green button style for WhatsApp */
    color: white !important;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px; /* pill shape */
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    transition: var(--transition);
}

.whatsapp-alt-btn:hover {
    background-color: #1fba58;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* =========================================================
   Mobile Hamburger Menu Button (Hidden on Desktop)
   ========================================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Stays above drawer */
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger lines morphing to X when active */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive adjustments for centered contact section */
@media (max-width: 768px) {
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .form-card {
        max-width: 100%;
        height: 810px; /* Increased to fit the taller 950px iframe without scrollbars on mobile */
    }

    .airtable-embed {
        width: 118%;
        height: 950px; /* Taller height to completely eliminate scrollbars on narrow screens */
        transform: scale(0.85);
        transform-origin: top right;
    }

    .whatsapp-alt-btn {
        width: 100%;
        max-width: 320px;
    }

    /* =========================================================
       Mobile Overrides (100% Isolated to Mobile Viewports)
       ========================================================= */
    .header-cta {
        display: none !important; /* Hide header WhatsApp button on mobile to prevent clunkiness */
    }

    .menu-toggle {
        display: flex; /* Show hamburger button on mobile */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen by default (slides from left, opposite side of logo) */
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background-color: #111010;
        z-index: 1000;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 2.5rem;
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
        border-right: 1px solid rgba(255,255,255,0.06);
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0; /* Slide in from left */
    }

    /* Hide detailed portfolio texts (Challenge/Solution) ONLY on mobile for a clean layout */
    .portfolio-details {
        display: none !important;
    }

    /* Hide the mobile hero image card completely as requested */
    .hero-mobile-image-card {
        display: none !important;
    }

    /* Mobile Hero Background Image (spans full height, aligned behind buttons and lower subtitle) */
    .hero-image-bg {
        display: block !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-position: center center !important;
        opacity: 0.52 !important; /* Elegant subtle opacity for text readability */
        z-index: 1 !important;
    }

    /* Vertical linear gradient fade (solid sand covers main title, fades out in the middle of subtitle) */
    .hero-image-bg::after {
        background: linear-gradient(to bottom, 
            var(--color-bg-primary) 0%, 
            var(--color-bg-primary) 24%, /* Solid sand covering the main title */
            rgba(248, 246, 242, 0.5) 45%, /* Image fades in softly, ending the solid fade in the middle of the subtitle */
            rgba(248, 246, 242, 0.5) 75%, 
            var(--color-bg-primary) 100% /* Fades back to solid sand at the bottom */
        ) !important;
    }

    /* Black border for the secondary CTA button on mobile only */
    .hero-section .secondary-cta {
        border-color: #1A1714 !important;
    }

    /* Mobile Scroll Reveal Entrance Animations (Desktop remains completely static) */
    .value-content-grid, 
    .service-card, 
    .portfolio-card, 
    .contact-form-centered {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, opacity;
    }

    .value-content-grid.active, 
    .service-card.active, 
    .portfolio-card.active, 
    .contact-form-centered.active {
        opacity: 1;
        transform: translateY(0);
    }
}
