:root {
      --primary: #9a3231;
      --primary-dark: #7a2827;
      --primary-light: #c23a39;
      --accent: #ff4d4d;
      --blue-accent: #1e3a8a;
      --nav-height: 78px;
      --nav-gradient: linear-gradient(135deg, #9a3231, #7a2827);
      --hover-gradient: linear-gradient(135deg, #b04a49, #8a2f2e);
    }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html {
      scroll-behavior: smooth;
      scroll-snap-type: y proximity;
        scroll-padding-top: var(--nav-height);
        
    }
    body {
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.6;
      color: #222;
      background: #f8f9fa;
      margin: 0;
      padding: 0;
    }
    /* Modern Navigation */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--nav-height);
      background: var(--nav-gradient);
      z-index: 1000;
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 8px 25px -8px rgba(0,0,0,0.3);
      transition: all 0.4s ease;
    }
    .nav-container {
      max-width: 1280px;
      height: 100%;
      margin: 0 auto;
      padding: 0 2.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .branding {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      color: white;
      z-index: 1002;
    }
    .logo-image {
      width: 46px;
      height: 46px;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .branding:hover .logo-image {
      transform: rotate(15deg) scale(1.1);
    }
    .logo {
      font-size: 1.8rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: white;
      text-decoration: none;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 0.5rem;
    }
    nav a {
      color: rgba(255,255,255,0.95);
      text-decoration: none;
      font-weight: 600;
      font-size: 1.05rem;
      position: relative;
      display: inline-block;
      padding: 10px 18px;
      border-radius: 10px;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Fill background hover matching nav gradient */
    nav a:hover,
    nav a.active {
      background: var(--hover-gradient);
      color: #fff;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
      transform: translateY(-2px);
    }
    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      cursor: pointer;
      z-index: 1002;
      width: 32px;
      height: 32px;
      position: relative;
    }
    .hamburger span {
      display: block;
      width: 28px;
      height: 3px;
      background: white;
      border-radius: 3px;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      transform-origin: center;
    }
    /* Hero */
    .hero-bg {
      position: relative;
      height: 100vh;
      min-height: 100vh;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      color: white;
    }
    .hero-video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      transform: translate(-50%, -50%);
      object-fit: cover;
      z-index: 1;
    }
    .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      min-width: 100%;
      height: 100%;
      background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.65) 0%,
        rgba(0, 0, 0, 0.75) 100%
      );
      background-size: 100% 100%;
      z-index: 2;
    }
    .hero-content {
      position: relative;
      z-index: 3;
      max-width: 920px;
      padding: 2rem 1.5rem;
      text-align: center;
    }
    .hero-content h1 {
      font-size: clamp(3rem, 8vw, 6rem);
      font-weight: 900;
      line-height: 92%;
      margin-bottom: 0.6em;
      text-shadow: 0 4px 20px rgba(0,0,0,0.75);
    }
    
    .hero-content h2 {
        font-size: clamp(2rem, 5vw, 4rem);
        font-weight: 900;
          line-height: 92%;
          margin-bottom: 0.6em;
          text-shadow: 0 4px 20px rgba(0,0,0,0.75);
    }
    .hero-content p {
      font-size: clamp(1.35rem, 4vw, 2rem);
      max-width: 720px;
      margin: 0 auto 2.8rem;
      font-weight: 500;
    }
    /* Button */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 18px 44px;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: white;
      font-size: 1.18rem;
      font-weight: 700;
      text-decoration: none;
      border-radius: 9999px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px -6px rgba(154, 50, 49, 0.55);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid rgba(255,255,255,0.25);
    }
    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -120%;
      width: 40%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
      transition: 0.7s;
    }
    .btn:hover::before {
      left: 250%;
    }
    .btn:hover {
      transform: translateY(-6px) scale(1.05);
      /*box-shadow: 0 20px 45px -8px rgba(154, 50, 49, 0.7);*/
      box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.7);
    }
    /* Video Credit */
    .video-credit {
      position: absolute;
      bottom: 40px;
      right: 40px;
      z-index: 4;
      color: rgba(255,255,255,0.85);
      font-size: 0.95rem;
      background: rgba(0,0,0,0.45);
      padding: 10px 20px;
      border-radius: 50px;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.2);
      width: auto;
    }
    .video-credit a {
      color: #ffdddd;
      text-decoration: none;
    }
    .video-credit a:hover {
      color: white;
      text-decoration: underline;
    }
    /* Main Sections */
    main {
      width: 100%;
      margin: 0;
      padding: 0;
    }
    section {
        scroll-snap-align: center;
        scroll-snap-stop: always; 
      height: auto;
      min-height: 100vh !important;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: calc(var(--nav-height) + 2rem) 2rem 3rem;
      overflow-y: auto;
      overscroll-behavior-y: auto;
      scroll-margin-top: 0;
      scrollbar-width: none;
      -ms-overflow-style: none;
      position: relative;
    }
    
    .parallax-bg {
      position: absolute;
      top: -15%;
      left: 0;
      width: 100%;
      height: 130%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: -2;
      pointer-events: none;
      will-change: transform;
      opacity: 0.35;
      /* background-image: url('image.jpg'); */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      height: 100%;
    }
    
    .minerva-drawing {
        width: 250px; 
        height: 250px; 
        overflow: hidden; 
        margin: 0 auto; 
        border-radius: 100%;
        border: 2px solid var(--primary-dark);
        margin-bottom: 16px;
        background: #fff;
        box-shadow: 2px 4px 20px rgba(0,0,0,0.5);
    }
    
    .minerva-drawing img {
        width: 100%;
        height: auto;
    }
    #about .parallax-bg,
    #contact .parallax-bg {
        
      opacity: 0.2;
      mix-blend-mode: soft-light;
    }
    /* Example placeholders – replace background-image with real assets */
    /*#services .parallax-bg { background-image: url('/img/services-bg.jpg'); }
    #about .parallax-bg    { background-image: url('/img/bg/dadworking.jpg'); }
    #location .parallax-bg { background-image: url('/img/location-bg.jpg'); }
    #contact .parallax-bg  { background-image: url('/img/bg/counter.jpg'); }*/
    section > * {
      width: 100%;
      max-width: 1180px;
    }
    /* Blue gradient backgrounds for About & Contact */
    #about,
    #contact {
      color: #f1f5f9;
    }
    #about::before,
    #contact::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
      z-index: -1;
      pointer-events: none;
    }
    
    
    #contact,
    #location {
      justify-content: center;
    }
    #about .section-header h2,
    #contact .section-header h2 {
      position: relative;
      color: transparent;
      background: none;
    }
    
    #about .section-header h2::before,
    #contact .section-header h2::before {
      content: attr(data-text);
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, #ffffff, #93c5fd);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      z-index: 1;
}
    
    #about .section-header h2::after,
    #contact .section-header h2::after {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        content: attr(data-text);
       text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    }
    #about .section-header p,
    #contact .section-header p,
    #about .about-content p,
    #contact .hours {
      color: #e2e8f0;
    }
    #about .award-badge {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      backdrop-filter: blur(8px);
      box-shadow: 0 1px 3px rgba(0,0,0,0.33);
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #about .award-badge:hover {
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
    #about .award-badge::before {
      background: linear-gradient(135deg, #60a5fa, #1e40af);
    }
    #contact .contact-box {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.15);
    }
    #contact .contact-box::before {
      background: linear-gradient(135deg, #60a5fa, #1e40af, #0f172a);
    }
    #contact .phone-large,
    #contact .phone-large a {
      color: #fff;
    }
    
    #contact, #about, #location {
        background-attachment: fixed;
          background-position: center;
          background-repeat: no-repeat;
          background-size: cover;
          min-height: 500px;
        
    }
    
    #contact {
        background-image: url('/img/bg/cherrydale.jpg');
    }
    
    #about {
        /* background-image: url('/img/bg/dadworking.jpg'); */
        background-image: url('/img/bg/ran1.JPG');
    }
    
    #location {
        background-image: url('/img/bg/cdm-map-bg.jpg');
    }
    .section-header h2 {
      font-size: clamp(2.2rem, 5vw, 3.2rem);
      margin-bottom: 1rem;
      background: linear-gradient(90deg, #222, var(--primary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-align: center;
    }
    .section-header p {
      max-width: 800px;
      margin: 0 auto 2.5rem;
      font-size: 1.15rem;
      text-align: center;
      color: #444;
    }
    /* Cards with gradient borders */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.8rem;
      margin-top: 2rem;
    }
    .service-card {
      background: white;
      border-radius: 16px;
      padding: 2rem 1.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
    }
    .service-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 2px;
      background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary-dark));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px -12px rgba(154, 50, 49, 0.25);
    }
    .service-card:hover::before {
      opacity: 1;
    }
    .service-card h3 {
      font-size: 1.3rem;
      margin-bottom: 0.6rem;
      color: var(--primary);
    }
    .service-card p {
      color: #555;
      font-size: 0.98rem;
    }
    /* About */
    .about-content {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
    }
    .about-content p {
      margin-bottom: 1.4rem;
      font-size: 1.1rem;
    }
    .awards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.2rem;
      margin-top: 2rem;
    }
    .award-badge {
      background: linear-gradient(135deg, #fff, #f8f9fa);
      
      border: 2px solid transparent;
      background-clip: padding-box;
      position: relative;
      padding: 0.8rem 1.4rem;
      border-radius: 50px;
      font-weight: 600;
      color: var(--primary);
      box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }
    .award-badge::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 50px;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      z-index: -1;
    }
    
    
    /*
    .content-card-callout::before {
    content: '';
    background: #000;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 16px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
}*/
    
    .content-card-callout::before {
        content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      /*border: 2px solid var(--primary-dark);*/
      padding: 4px;
      background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary-dark));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      background: rgba(0,0,0,0.5);
      z-index: -1;
      /*
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      background: linear-gradient(135deg, #60a5fa, #1e40af, #0f172a);
      */
    }
    
    .content-card-callout::after {
        -webkit-mask-composite: xor;
      mask-composite: exclude;
            background: linear-gradient(135deg, #60a5fa, #1e40af, #0f172a);
    }
    
    figure {
        margin: 16px;
    }
    figcaption {
        color: white;
    }
    
    figure img {
        width: 100%;
        max-width: 300px;
        height: auto;
        box-shadow: 0 3px 16px rgba(0,0,0,0.5);
    }
    /* Location */
    .location-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      margin-top: 2rem;
    }
    .map-container, .content-card-callout {
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 15px 40px -10px rgba(0,0,0,0.2);
      height: 360px;
      max-height: 50vh;
      border: 3px solid transparent;
      background: linear-gradient(white, white) padding-box,
                  linear-gradient(135deg, var(--primary), var(--primary-light)) border-box;
    }
    
    .map-container iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }
    
    #about .content-card-callout {
        height: auto;
        max-height: none;
        padding: 16px;
        text-align: center;
        margin-bottom: 32px;
        max-height: none;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
    }
    
    .flex-center {
        display:flex; 
        justify-content: center; 
    }
    .location-info h3 {
      font-size: 1.6rem;
      margin-bottom: 1rem;
      color: var(--primary-dark);
    }
    .location-info p {
      margin-bottom: 1rem;
      font-size: 1.05rem;
    }
    /* Contact */
    .contact-box {
      text-align: center;
      max-width: 700px;
      margin: 0 auto;
      background: white;
      padding: 3rem 2rem;
      border-radius: 20px;
      box-shadow: 0 15px 40px -15px rgba(0,0,0,0.12);
      position: relative;
    }
    .contact-box::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 20px;
      padding: 3px;
      background: linear-gradient(135deg, var(--primary), #c23a39, #7a2827);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }
    .phone-large {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--primary);
      margin: 1rem 0 1.5rem;
      letter-spacing: -0.02em;
    }
    .hours {
      font-size: 1.15rem;
      color: #444;
    }
    /* Footer */
    footer {
      background: #111;
      background: linear-gradient(90deg,rgba(17, 17, 17, 1) 0%, rgba(31, 31, 31, 1) 50%, rgba(17, 17, 17, 1) 100%);
      color: #ccc;
      padding: 3.5rem 2rem 2rem;
      text-align: center;
      
    }
    footer a {
      color: #ffdddd;
      text-decoration: none;
    }
    footer a:hover {
      text-decoration: underline;
    }
    
    img, .nav-menu {
      -webkit-touch-callout: none; 
      -webkit-user-select: none;   
      -khtml-user-select: none;    
      -moz-user-select: none;      
      -ms-user-select: none;       
      user-select: none;           
    }
    
    @media (max-width: 960px) {
        section {
            padding-left: 10px;
            padding-right: 10px;
            height: auto;
            min-height: 100vh !important;
        }
        .about-content {
            width: 100%;
            border-radius: 0;
        }
        #about .content-card-callout { 
            width: 100%;
            border-radius: 0;
        }
        .content-card-callout::before {
            width: 100%;
            border-radius: 0;
        }
        .about-content .flex-center {
            flex-direction: column;
        }
    }
    /* ========== RESPONSIVE / MOBILE DRAWER ========== */
    @media (max-width: 877px) {
      .nav-container {
        padding: 0 1.5rem;
      }
      nav ul {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--nav-gradient);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        padding: 0;
        margin: 0;
        transform: translateY(-100%);
        transition: none; /* prevent flash on resize / breakpoint cross */
        z-index: 999;
        box-shadow: none;
        border: none;
      }
      nav ul.open {
        transform: translateY(0);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
      }
      nav ul a {
        font-size: 1.5rem;
        padding: 12px 24px;
      }
      .hamburger {
        display: flex;
      }
      .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
      }
      .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }
      .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
      }
      body.menu-open {
        overflow: hidden;
      }
      .hero-bg {
        height: 100vh;
        min-height: 100vh;
      }
      .video-credit {
        bottom: 25px;
        right: 20px;
        font-size: 0.85rem;
        padding: 8px 16px;
      }
      .logo {
        font-size: 1.5rem;
      }
      .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      
      .location-info .btn {
        /* need to center this */
        
      }
      .map-container {
        height: 320px;
      }
      .phone-large {
        font-size: 1.9rem;
      }
    }
    
    @media (max-width: 500px) {
        .logo {
            display: none;
        }
        .hero-content h2 {
            display: none;
        }
    }