/* -------------------------------------------------------------
 * ABIT IT CONSULTING - STILE MINIMALE ED EDITORIALE (STYLE SYSTEM)
 * Inspired by Anthropic.com aesthetic: premium serif/sans pairings, 
 * elegant whitespace, thin borders, and organic transitions.
 * ------------------------------------------------------------- */

/* ==========================================================================
   1. DESIGN TOKENS & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette - Cream & Obsidian with Terracotta */
    --bg-light: #F9F6F0;           /* Warm Sand/Cream */
    --bg-light-alt: #F3EFE7;       /* Slightly deeper warm cream */
    --text-dark: #191919;          /* Deep Obsidian/Charcoal */
    --text-dark-muted: #5C5852;    /* Muted editorial gray */
    --border-light: #E2DED5;       /* Very clean thin dividers */
    
    --bg-dark: #0D0D0D;            /* Deep black/charcoal */
    --bg-dark-alt: #141414;        /* Slightly lighter dark charcoal */
    --text-light: #F0EDE6;         /* Off-white warm text */
    --text-light-muted: #9E9B95;   /* Muted text on dark background */
    --border-dark: #222222;        /* Subtle dark lines */
    
    --accent: #C85A32;             /* Sophisticated terracotta/rust */
    --accent-light: #E27953;       /* Lighter rust for hover states */
    --accent-dark: #A13F1D;        /* Deeper clay for active states */
    
    /* Typography Families */
    --font-serif: "Lora", Georgia, Cambria, "Times New Roman", Times, serif;
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing Scale (Fluid clamp values for beautiful layout sizing) */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.8rem, 1.5vw, 1.2rem);
    --space-md: clamp(1.5rem, 3vw, 2.5rem);
    --space-lg: clamp(2.5rem, 5vw, 4rem);
    --space-xl: clamp(4rem, 8vw, 7rem);
    
    /* Global Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

li {
    list-style: none;
}

/* Base Headings & Utility Styles */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   3. REUSABLE COMPONENTS (BUTTONS & UI BADGES)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: var(--accent-dark);
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

/* For Light Sections outline button */
.services-section .btn-outline,
.philosophy-section .btn-outline {
    border-color: var(--text-dark);
}

.services-section .btn-outline:hover,
.philosophy-section .btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--bg-light);
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-lead {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-dark-muted);
    max-width: 700px;
}

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

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

.brand-logo {
    height: 24px;
    width: 95px; /* Explicit width prevents SVG collapse on iOS/Mobile Safari */
    object-fit: contain;
    transition: var(--transition-fast);
    filter: invert(1) hue-rotate(180deg) brightness(1.6) saturate(2.5); /* Inverts black text to white while restoring the 'A' to its exact bright yellow */
}

/* Navigation lists */
.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header state adjustments on scroll or section shift */
.header-transparent {
    background-color: transparent;
}

/* Dark scrolled header styling */
.header-scrolled-dark {
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 0;
}

.header-scrolled-dark .header-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Light scrolled header styling */
.header-scrolled-light {
    background-color: rgba(249, 246, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    color: var(--text-dark);
}

.header-scrolled-light .header-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.header-scrolled-light .nav-link {
    color: var(--text-dark-muted);
}

.header-scrolled-light .nav-link:hover {
    color: var(--text-dark);
}

.header-scrolled-light .brand-logo {
    /* Native colors (yellow A + dark text) render perfectly on the cream background */
    filter: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    z-index: 150;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

.header-scrolled-light .hamburger-bar {
    background-color: var(--text-dark);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 130px;
    padding-bottom: 90px;
}

.typographic-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 1050px;
}

.hero-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-dark);
    margin: var(--space-md) 0;
}

.hero-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.hero-lead {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.65;
    color: var(--text-light-muted);
    max-width: 660px;
}

.hero-meta-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-dark);
    padding-left: 1rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.meta-val {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Scroll indicator animation */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light-muted);
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    animation: scrollDown 2s infinite ease-in-out;
    color: var(--accent);
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(6px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.3; }
}

/* ==========================================================================
   6. PHILOSOPHY SECTION (Transition to Warm Cream)
   ========================================================================== */
.philosophy-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.phil-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.editorial-text {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    line-height: 1.45;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.editorial-text-secondary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark-muted);
}

/* Metrics Dashboard with thin line borders */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-md);
    gap: var(--space-md);
}

.metric-card {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.metric-num {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   7. SERVICES SECTION (Advanced Border-Grid Technique)
   ========================================================================== */
.services-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.section-intro {
    margin-bottom: var(--space-lg);
}

/* Advanced Grid with thin line dividers natively rendered */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--border-light); /* Grid container bg sets border color */
    gap: 1px; /* The gap represents the border thickness */
    border: 1px solid var(--border-light);
}

.service-card {
    background-color: var(--bg-light); /* Matching background covers grid bg */
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.service-card:hover {
    background-color: var(--bg-light-alt);
}

.card-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.card-features li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.25rem;
}

.card-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================================================
   8. METHODOLOGY SECTION
   ========================================================================== */
.methodology-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.methodology-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-lg);
}

.method-intro {
    position: sticky;
    top: 140px;
    height: fit-content;
}

/* Minimalist Accordion component */
.method-accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-item:first-child {
    border-top: 1px solid var(--border-light);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    text-align: left;
    transition: var(--transition-fast);
}

.acc-num {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-dark-muted);
    width: 50px;
    transition: var(--transition-fast);
}

.acc-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: var(--text-dark);
    flex-grow: 1;
    transition: var(--transition-fast);
}

.acc-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.acc-icon::before, .acc-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
}

/* Horizontal line */
.acc-icon::before {
    top: 9px;
    left: 2px;
    width: 16px;
    height: 1px;
}

/* Vertical line */
.acc-icon::after {
    top: 2px;
    left: 9px;
    width: 1px;
    height: 16px;
}

/* Open accordion states */
.accordion-item.active .acc-title {
    color: var(--accent);
}

.accordion-item.active .acc-num {
    color: var(--accent);
}

.accordion-item.active .acc-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-item.active .acc-icon::before {
    background-color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
    max-height: 200px; /* Big enough to contain the text */
}

.acc-text {
    padding-bottom: 2rem;
    padding-left: 50px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark-muted);
    max-width: 600px;
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 140px;
}

.contact-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark-muted);
    margin-bottom: 3rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

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

.channel-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.channel-link {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--text-dark);
}

.channel-link:hover {
    color: var(--accent);
}

.channel-value {
    font-size: 1.05rem;
    color: var(--text-dark-muted);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.social-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark-muted);
}

.social-link:hover {
    color: var(--text-dark);
}

/* Corporate & Footer Legal Data Styling */
.corporate-details {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.corp-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.corp-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}
.corp-address, .corp-piva {
    font-size: 1.05rem;
    color: var(--text-dark-muted);
}
.footer-legal-data {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-top: 1px solid var(--border-dark);
    padding-top: 1.25rem;
}
.footer-corp-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}
.footer-corp-address, .footer-corp-piva {
    font-size: 0.85rem;
    color: var(--text-light-muted);
    line-height: 1.45;
}

/* Contact action card styling */
.contact-action-wrapper {
    background-color: var(--bg-light-alt);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: var(--space-md);
}
.contact-action-card {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.contact-action-card .channel-link {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-dark);
    word-break: break-all;
    line-height: 1.1;
    transition: var(--transition-fast);
}
.contact-action-card .channel-link:hover {
    color: var(--accent);
}
.channel-subtext {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    margin-top: -1rem;
}
.contact-details-extra {
    border-top: 1px solid var(--border-light);
    padding-top: 1.8rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-lg) 0 3rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-grid.three-cols {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-logo {
    height: 22px;
    width: 85px; /* Explicit width prevents collapse on mobile */
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: invert(1) hue-rotate(180deg) brightness(1.6) saturate(2.5); /* Inverts black text to white while restoring the 'A' to its exact bright yellow */
}

.footer-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light-muted);
    max-width: 300px;
}

.footer-col-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

.footer-links a:hover {
    color: var(--text-light);
    transform: translateX(2px);
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 0.5rem;
}

.newsletter-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-light-muted);
}

.newsletter-btn {
    color: var(--accent);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    color: var(--accent-light);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.legal-links a:hover {
    color: var(--text-light);
}

/* ==========================================================================
   11. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom stagged animation delay utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Devices (992px) */
@media (max-width: 992px) {
    .hero-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-meta-col {
        gap: 1.5rem;
    }

    .philosophy-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .methodology-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .method-intro {
        position: static;
    }

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

    .contact-info {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-newsletter {
        grid-column: span 3;
        margin-top: 1.5rem;
    }
}

/* Smartphone Portrait & Landscape (768px) */
@media (max-width: 768px) {
    /* Mobile Menu Drawer & Toggle */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-dark-alt);
        padding: 100px var(--space-md) var(--space-md) var(--space-md);
        border-left: 1px solid var(--border-dark);
        transition: var(--transition-smooth);
        z-index: 120;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--text-light-muted);
    }

    .nav-link:hover {
        color: var(--text-light);
    }

    .header-cta {
        display: none; /* Hide top CTA in mobile header to save space */
    }

    /* Transform hamburger into Close (X) when menu open */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--text-light);
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--text-light);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .footer-brand {
        grid-column: span 2;
    }

    .footer-newsletter {
        grid-column: span 2;
    }
}

/* Tiny Devices (480px) */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        margin-left: 0 !important;
    }

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

    .footer-brand, .footer-newsletter, .footer-nav-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   13. TOAST NOTIFICATION STYLING (COPY FALLBACK)
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 100px);
    background-color: var(--bg-dark-alt);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-icon {
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   14. MODAL OVERLAY STYLING
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    padding: var(--space-md);
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-muted);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-dark);
    border-color: var(--text-dark);
    background-color: var(--bg-light-alt);
}

.modal-close-btn svg {
    width: 16px;
    height: 16px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modal-lead-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
}

.modal-email-box {
    background-color: var(--bg-light-alt);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-email-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.modal-email-link {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-dark);
    word-break: break-all;
    transition: var(--transition-fast);
}

.modal-email-link:hover {
    color: var(--accent);
}

.modal-commitment {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
}

.modal-corporate-info {
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-corporate-info .corp-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-dark-muted);
    text-transform: uppercase;
}

.modal-corporate-info .corp-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-corporate-info .corp-address {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn {
    flex: 1;
}
