/* Modernization Overrides - Iteration 5: Premium Interaction Design */

:root {
  /* CORE PALETTE - Ultra Premium */
  --primary: #000000;
  --primary-gradient: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, #000000 100%);
  
  /* GLASS & FROST */
  --glass-surface: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(20px);
  
  /* ACCENTS - Refined */
  --accent: #0071e3;        /* Apple Blue */
  --accent-dark: #005BB5;
  
  /* TYPOGRAPHY */
  --heading-color: #1d1d1f;
  --text-color: #86868b;
  
  /* DEPTH */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-float: 0 20px 40px rgba(0,0,0,0.1);
  --radius: 18px;

  /* BACKGROUNDS */
  --bg-light: #ffffff;
}

/* ... (Existing styles for Reveal/Parallax remain effectively the same, 
      restating relevant parts to ensure file integrity if overwriting) ... */

/* --- ANIMATION ENGINE --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.about-services li:nth-child(1) { transition-delay: 0.1s; }
.about-services li:nth-child(2) { transition-delay: 0.2s; }
.about-services li:nth-child(3) { transition-delay: 0.3s; }

/* FIX: Ensure services stack responsively on all screen sizes */
.about-services {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
}

/* --- HERO & PARALLAX --- */
.page-header-wrapper.homepage-header {
  background: transparent !important; 
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}
@media (min-width: 769px) {
  .page-header-wrapper.homepage-header {
    padding-bottom: 160px;
  }
}

.page-header-wrapper.homepage-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}
.page-header-wrapper .container {
    position: relative;
    z-index: 3;
}
.page-header-wrapper.homepage-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 20%);
    z-index: 2;
}
@media (min-width: 769px) {
  .page-header-wrapper.homepage-header::after {
    height: 120px;
  }
}
.page-header-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2; 
    padding-bottom: 0.1em;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}

@media (min-width: 769px) {
  .page-header-wrapper h1 {
    font-size: 4.5rem;
  }
}

.page-header-wrapper p {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    line-height: 1.4;
}

@media (min-width: 769px) {
  .page-header-wrapper p {
    font-size: 1.5rem;
  }
}

/* --- GLASS CARDS --- */
.about-services li a {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.about-services li a:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: var(--shadow-float);
    background: #FFF;
}
.about-services img {
    border-radius: 24px 24px 0 0;
    filter: saturate(1.1);
}
.about-services h3 {
    font-weight: 600;
    color: #1d1d1f;
}

/* --- PREMIUM BUTTONS --- */
/* 
   Strategy: Move from "Default CSS" to "Engineered Object".
   1. Subtle gradients for volume (no flat colors).
   2. Inner shadows for highlight (3D glass lip).
   3. Smoother transitions.
*/

.button {
    /* Base Shape */
    border-radius: 980px !important;
    padding: 16px 36px !important; /* Slightly tighter vertical for elegance */
    font-size: 16px !important;     /* Refined text size */
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    border: none !important;
    
    /* The "Premium" Look - Blue */
    background: linear-gradient(180deg, #0077ED 0%, #0071e3 100%) !important;
    color: white !important;
    
    /* Depth - The Secret Sauce */
    /* Top inset white for "lip", Bottom shadow for lift */
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 2px 4px rgba(0, 113, 227, 0.3),
        0 10px 20px rgba(0, 113, 227, 0.1) !important;
        
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    /* Brighter gradient on hover */
    background: linear-gradient(180deg, #2B95FF 0%, #0077ED 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 6px 12px rgba(0, 113, 227, 0.4),
        0 15px 30px rgba(0, 113, 227, 0.2) !important;
}

.button:active {
    transform: translateY(0);
    background: #0071e3 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important; /* Pressed in */
}

/* SECONDARY BUTTONS ("Learn More") - The "Soft Tint" Style */
/* Replacing the generic border with a soft colored background */
.button.outlined {
    background: rgba(0, 113, 227, 0.08) !important; /* Very light blue tint */
    color: var(--accent) !important;
    border: 1px solid rgba(0, 113, 227, 0.1) !important; /* Subtle definition */
    box-shadow: none !important;
}

.button.outlined:hover {
    background: var(--accent) !important; /* Fills in on hover */
    color: white !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25) !important;
}

/* WHITE/GHOST BUTTONS (Hero Secondary) */
.button.white, .button.ghost-white {
    background: rgba(255,255,255,0.9) !important;
    color: #1d1d1f !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}
.button.white:hover {
    background: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}


/* --- NAVIGATION --- */
.site-masthead {
    background: rgba(255,255,255,0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.site-masthead.reverse-header {
    background: rgba(0,0,0,0.6) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- GLOBAL SPACING --- */
/* Adjust content padding to be more responsive, overriding style.css defaults */
.content {
    padding-top: 40px;
    padding-bottom: 40px;
}
@media (min-width: 769px) {
    .content {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

/* --- CONTACT MAP --- */
.contact-map iframe {
    height: 300px;
}
@media (min-width: 769px) {
    .contact-map iframe {
        height: 500px;
    }
}
.mb-60 { margin-bottom: 80px !important; }
.mb-12 { margin-bottom: 24px !important; }

/* --- LOGO WALL --- */
.logo-wall img {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}
.logo-wall img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}
