:root {
      --text-color-dark: #3e3e3e;
      --text-color-light: #f9f9f9;
      --primary-green:#729452;
      --primary-grey:#bdb7a7;
      --primary-pale:#dadad2;
      --primary:#f2f3ed;
      --primary-dark:#4c6237;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: "League Spartan", sans-serif;
      color: var(--text-color-dark);
      background: var(--primary);
      line-height: 1.7;
      overflow-x: hidden;
    }

    .hidden {
      display: none !important;
    }

    .visually-hidden {
      border: 0;
      clip-path: inset(50%);
      height: 1px;
      margin: 0;
      overflow: hidden;
      position: absolute;
      white-space: nowrap;
      width: 1px;
    }

    /* Subtle Background Texture Overlay */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image: url('https://www.transparenttextures.com/patterns/fabric-of-squares.png');
      opacity: 0.15;
      pointer-events: none;
      z-index: -1;
    }

    /* Header & Navigation */
  
    header {
      position: fixed;
      top: 0;
      width: 100%;
      /* background: url(/header_bg.svg); */
      background-repeat: no-repeat;
      background-size: cover;
      z-index: 1000;
    }


    .nav-container {
      /* max-width: 1200px; */
      margin: auto;
      padding: 3rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.4s ease;
    }

    .nav-container.scrolled{
      background:var(--primary-green);
      backdrop-filter: blur(20px);
      padding: 1rem 3rem;
      box-shadow: 0 2px 40px rgba(50,50,43,0.08);
    }

    .logo img{
      max-width: 10vw;
      transition: all 0.3s ease;
      opacity: 0;
      pointer-events: none;
    }

    .nav-container.scrolled .logo img{
      opacity: 1;
      pointer-events: all;
    }

    nav {
      display: flex;
      gap:2.5rem;
      align-items: center;
    }

    nav a {
      text-decoration: none;
      color: var(--primary);
      font-weight: 400;
      letter-spacing: 0.05em;
      font-size: 1rem;
      transition: color 0.3s ease;
      text-transform: uppercase;
    }

    nav a:hover {
      color: var(--primary-dark);
    }

    .socials img{
      max-width: 30px;
    }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
    }

    .hamburger span {
      width: 24px;
      height: 2px;
      background: var(--primary);
      transition: all 0.3s ease;
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background: var(--primary-green);
      box-shadow: -20px 0 40px rgba(0,0,0,0.15);
      padding: 6rem 2rem 2rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      transition: right 0.4s ease;
      z-index: 999;
      text-align: center;
      align-content: start;
      justify-content: center;
    }

    .mobile-menu .btn{
      grid-column: span 2;
    }
    
    .mobile-menu img{
      max-width: unset;
    }

    .mobile-menu a {
      text-decoration: none;
      font-size: 1.8rem;
      color: var(--text-color-dark);
      letter-spacing: 0.06em;
    }

    .mobile-menu.show {
      right: 0;
    }

    /* Sections */
    section {
      min-height: 100vh;
      padding: 2rem 1.5rem 2rem;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    section.slim{
      min-height: unset;
    }

    .section-container {
      max-width: 1200px;
      margin: auto;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
      position: relative;
      z-index: 2;
    }

    .section-container.single {
      grid-template-columns: 1fr;
      text-align: center;
    }

    h1 {
      font-size: 2.5rem;
    }

    h2 {
      font-family: "League Spartan", sans-serif;
      text-transform: uppercase;
      font-size: 2.4rem;
      font-weight: 700;
    }

    p {
      font-size: 1.05rem;
      color: #2f3f3a;
      max-width: 600px;
    }

    p span.highlight-text{
        font-family: "Libre Baskeville",serif;
        font-style: italic;
        font-weight: 600;
        color: var(--primary-green);
    }

    .section-container.single p {
      margin: 0.5rem auto 0;
    }

    .btn {
      display: inline-block;
      padding: 0.9rem 3rem;
      background: var(--primary);
      color: var(--primary-dark);
      border-radius: 999px;
      text-decoration: none;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.8rem;
      transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .btn:hover {
      background: var(--primary-dark);
      color: var(--primary);
      transform: translateY(-3px);
      box-shadow: 0 14px 35px rgba(0,0,0,0.2);
    }

    .image-wrapper {
      position: relative;
      overflow: hidden;
      border-radius: 1.5rem;
      box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    }

    .image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 1s ease;
    }

    .image-wrapper:hover img {
      transform: scale(1.08);
    }

    /* Video*/
    .video{
      position:relative;
      overflow: hidden;
      border-radius: 10px;
    }
  
    .video video{
      width:100%;
      height:550px;
      object-fit: cover;
    }

    #video-container{
      height: 550px;
    }

    /* Introduction Text */
    .welcome p{
      text-align: center;
    }

    /* Hero Section */
    #intro{
      min-height: unset;
      height: 100vh;
      /* margin: 2.5vh; */
    }

    #intro img.logo{
      position: absolute;
      bottom:20px;
      max-width: 20vw;
      opacity: 1;
      transition: all 0.3s ease;
    }

    #intro.scrolled img.logo{
      opacity: 0;
    }

    /* Parallax Hero */
    .hero{
      background: linear-gradient(rgba(31,47,42,0.45), rgba(31,47,42,0.45)),
        url('/img/11130462.jpg') center/cover fixed;
      /* border-radius: 50px;
      margin:1vw; */
    }

    /* Highlights Section */
    .highlight{
      display: grid;
      align-items: center;
      align-content: center;
      min-height: 200px;
    }
    
    .highlight div{
      color: var(--primary-green);
      font-size: 4rem;
      font-weight: 700;
    }

    .highlight span{
      color: var(--text-color-dark);
      font-size: 1rem;
      text-transform: uppercase;
    }

    .highlight.show:nth-child(1) div::before,.highlight.show:nth-child(3) div::before{
      font: 500;
      content: counter(count);
      animation: counterTo2 1s linear 1 forwards;
    }

    .highlight.show:nth-child(2) div::before{
      font: 500;
      content: counter(count);
      animation: counterTo18 1s linear 1 forwards;
    }



    /* Gallery */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      /* margin-top: 3rem; */
    }

    .gallery-grid .image-wrapper { height: 260px; }

    .gallery-grid .image-wrapper img{
        filter: grayscale(0) brightness(1);
        transition: all 0.3s ease;
    }

    .gallery-grid:hover .image-wrapper img{
        filter: grayscale(1) brightness(0.5);
    }

    .image-wrapper:hover img{
        filter: grayscale(0) brightness(0.5) !important;
    }

    .gallery-grid .image-wrapper span{
        position:absolute;
        left:0; top:150%;
        width:100%;
        color: var(--primary);
        font-family: 'Amatic SC';
        font-size:3rem;
        font-weight: 900;
        transform: translateY(-50%);
        transition: all 0.4s ease;
    }

    .image-wrapper:hover span{
        top:50%;
    }

    /* Contact Form */
    .contact-form {
      max-width: 520px;
      margin: 0 auto;
      text-align: left;
      background: rgba(255,255,255,0.65);
      padding: 2.5rem;
      border-radius: 1.5rem;
      box-shadow: 0 25px 50px rgba(0,0,0,0.1);
      backdrop-filter: blur(8px);
    }

    .contact-form label {
      display: block;
      margin-bottom: 0.3rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      font-size: 0.85rem;
      color: var(--forest-green);
      text-transform: uppercase;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 0.7rem 0.8rem;
      margin-bottom: 1.4rem;
      border-radius: 0.6rem;
      border: 1px solid #ccc;
      font-family: inherit;
      font-size: 0.95rem;
      background: #fff;
    }

    .contact-form textarea { min-height: 130px; resize: vertical; }

    /* Google Map */
    .map-container {
      width: 100%;
      height: 350px;
      margin-top: 3rem;
      border-radius: 1.5rem;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .map-container iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    /* Overlays */
    .overlay{
        position:fixed;
        left:0; top:0;
        width:0vw; height:0vh;
        background-color: var(--primary-dark);
        z-index:1500;
        padding: 0.8em 2em;
        transition: all 0.4s ease;
        opacity: 0;
        overflow-y: scroll;
        & *{
            color: var(--primary);
        }
    }

    .overlay.show{
        width:100vw; height:100vh;
        opacity: 1;
    }

    .overlay-topbar{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .overlay-title{
        font-size: 3em;
        text-transform: uppercase;
    }

    .overlay-close span{
        display: block;
        position:relative;
        width:30px;
        height:5px;
        background-color: var(--primary);
        transition: transform 0.4s ease;
        &:nth-child(1){
            transform: rotate(45deg);
        }
        &:nth-child(2){
            transform: rotate(-45deg);
            margin-top:-5px;
        }
    }

    .overlay-close:hover{
        cursor: pointer;
    }

    .overlay-close:hover span{
        &:nth-child(1){
            transform: rotate(225deg);
        }
        &:nth-child(2){
            transform: rotate(-225deg);
        }
    }

    .overlay-section.single{
        grid-template-columns: 1fr;
    }

    .overlay-section{
        margin-top: 2em;
    }

    .overlay-section p{
        max-width: none;
    }

    /* Horizontal Scroll Section */

    .wrapper {
      padding: 1rem;
      background: var(--primary-green);
      text-align: center;
    }

    .wrapper h2{
      color: var(--primary);
      margin:0;
    }

    /* 
      Height = 100vh buffer (no movement)
              + panels * 100vh (movement)
    */
    .h-scroll {
      --panels: 4;
      height: calc(100vh + (var(--panels) * 100vh));
      position: relative;
    }

    .sticky-wrap {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
    }

    .h-track {
      display: flex;
      height: 100%;
      width: max-content;
      will-change: transform;
    }

    .panel {
      min-width: 50vw;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 3rem;
      padding:3rem;
    }

    .panel-inner{
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-pale);
      height:80%;
      width:100%;
      box-shadow: rgba(0,0,0,0.15) 10px 10px 10px;
      margin-top: 50px;
      border-radius: 10px;
      padding:20px;
    }

    .panel-inner-overlay{
      position: relative;
      width: 80%;
      height:80%;
      background: rgba(255,255,255,0.3);
      backdrop-filter: blur(10px);
      text-align: center;
      padding:20px;
    }


    .h-track :nth-child(1) .panel-inner{
      background: url('/img/Aberdaron.jpg') no-repeat center center / cover; 
    }

    .h-track :nth-child(2) .panel-inner{
      background: url('/img/Snowdonia.jpg') no-repeat center center / cover; 
    }

    .h-track :nth-child(3) .panel-inner{
      background: url('/img/CricciethCastle.jpg') no-repeat center center / cover; 
    }

    .h-track :nth-child(4) .panel-inner{
      background: url('/img/Seals.jpg') no-repeat center center / cover; 
    }

    @media (max-width: 700px) {
      .logo img{
        max-width: 30vw;
      }
      #intro img.logo{
        max-width: 40vw;
      }
      .panel{
        min-width:unset;
        max-width: 100vw;
        padding: 1.5rem;
      }

      .panel-inner{
        padding:0;
      }

      .panel h1{
        line-height: 1;
        font-size: 3rem;
      }

      .panel p{
        font-size: 1rem;
        line-height: 1.5;
      }

    }

    @media (max-width: 400px) {
      .panel h1{
        font-size: 2rem;
      }
    }

    /* Information Cards */

    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 5rem;
      padding: 5vw;
    }

    /* Full-width cards */
    .card.full {
      grid-column: 1 / -1;
    }

    .card {
      background: var(--primary);
      padding: 2rem;
      border-radius: 8px;
      box-shadow: 10px 10px 10px rgba(0,0,0,0.15);
    }

    .card h1 {
      margin-top: 0;
    }

    /* Slider */
    .slider {
      position: relative;
      overflow: hidden;
      margin: 10px 0;
    }

    .slides {
      display: flex;
      transition: transform 0.3s ease;
    }

    .slides img {
      width: 100%;
      flex-shrink: 0;
      clip-path: inset();
      object-fit: cover;
      max-height: 50vh;
    }

    .slider button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      padding: 8px 12px;
      cursor: pointer;
      border-radius: 4px;
    }

    .slider .prev { left: 10px; }
    .slider .next { right: 10px; }

    /* Mobile: stack all cards */
    @media (max-width: 700px) {
      .card-grid {
        grid-template-columns: 1fr;
      }
      .slider button{
        display:none;
      }
    }

    /* Existing grid and card styles remain unchanged */

    .dots {
      display: flex;
      justify-content: center;
      margin-top: 8px;
      gap: 6px;
    }

    .dots span {
      width: 10px;
      height: 10px;
      background: var(--primary-green);
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.2s;
    }

    .dots span.active {
      background: var(--primary-dark);
    }

    /* Improve swipe feel */
    .slides {
      touch-action: pan-y;
    }

    /* Scroll Animations */
    .animate { opacity: 0; transform: translateX(-80px); transition: all 1s ease; }
    .animate-right { opacity: 0; transform: translateX(80px); transition: all 1s ease; }
    .animate-up { opacity: 0; transform: translateY(80px); transition: all 1s ease; }

    .animate.show,
    .animate-right.show,
    .animate-up.show { opacity: 1; transform: translate(0, 0); }

    /* Footer */
    footer {
      padding: 3rem 1.5rem;
      background: var(--primary);
      color: #d6d1c7;
      text-align: center;
      font-size: 0.9rem;
      letter-spacing: 0.04em;
    }

    /* Responsive */
    @media (max-width: 900px) {
      nav { display: none; }
      .hamburger { display: flex; }
      .section-container { grid-template-columns: 1fr; text-align: center; }
      /* h1 { font-size: 2.5rem; } */
      h2 { font-size: 2rem; }
      p { margin-left: auto; margin-right: auto; }
    }

    /* Other Animations */
    @keyframes counterTo2{
      0%{
        counter-increment: count 0;
      }
      50%{
        counter-increment: count 1;
      }
      100%{
        counter-increment: count 2;
      }
    }

    @keyframes counterTo18{
      0%{
        counter-increment: count 0;
      }
      6%{
        counter-increment: count 1;
      }
      12%{
        counter-increment: count 2;
      }
      18%{
        counter-increment: count 3;
      }
      24%{
        counter-increment: count 4;
      }
      30%{
        counter-increment: count 5;
      }
      36%{
        counter-increment: count 6;
      }
      42%{
        counter-increment: count 7;
      }
      48%{
        counter-increment: count 8;
      }
      54%{
        counter-increment: count 9;
      }
      60%{
        counter-increment: count 10;
      }
      66%{
        counter-increment: count 11;
      }
      72%{
        counter-increment: count 12;
      }
      78%{
        counter-increment: count 13;
      }
      84%{
        counter-increment: count 14;
      }
      90%{
        counter-increment: count 15;
      }
      96%{
        counter-increment: count 16;
      }
      98%{
        counter-increment: count 17;
      }
      100%{
        counter-increment: count 18;
      }
    }