/* ===========================
   Alex Walks - Main Stylesheet
   =========================== */

/* CSS Variables - Colour Scheme */
:root {
    /* Base colours */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-light-grey: #f5f5f5;

    /* Secondary colours */
    --color-orange: #ff8000;
    --color-pink: #ffb6c1;
    --color-turquoise: #40e0d0;

    /* Typography */
    --font-heading: 'Georgia', serif;
    --font-body: 'Helvetica', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --logo-box-size: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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



/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    z-index: 1000;
}

.logo-container {
    position: relative;
    width: var(--logo-box-size);
    height: calc(var(--logo-box-size) + 20px);
    background-color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0);
}

.logo {
    position: relative;
    width: 150px;  /* adjust size as needed */
    height: 150px;
    top: 43%;  /* positions it to cross over the header */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    color: var(--color-black);
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 12pt;
    color: var(--color-white);
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #40e0d0;
  color: #000;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 6px 0;
}

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

/*Accessibility of dropdown menu*/

.nav-link-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.dropdown-toggle:focus-visible {
  outline: 2px solid #ffffff; /* visible focus ring */
  border-radius: 4px;
}

.chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 1.2rem;
  color: var(--color-white);
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
        }

        .dropdown-toggle[aria-expanded="true"] .chevron {
            transform: rotate(-135deg) translateY(2px);
        }

        /* Hover + keyboard-open state — unified via data attribute */
        .nav-item:hover .dropdown,
        .nav-item:has([aria-expanded="true"]) .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown {
            list-style: none;
            padding: 0;
            margin: 0;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--color-black);
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
        }

        /* When opened, cancel the visibility delay */
        .nav-item:hover .dropdown,
        .nav-item:has([aria-expanded="true"]) .dropdown {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .nav-link.book-btn {
            background-color: var(--color-orange);
            color: var(--color-black);
            padding: 10px 20px;
            font-weight: bold;
        }

        .nav-link.book-btn:hover {
            background-color: #e5a2b5;
        }

        .dropdown-link {
            display: block;
            padding: 12px 20px;
            color: var(--color-white);
            font-size: 11pt;
            border-bottom: 1px solid #333;
            transition: background-color 0.3s ease;
        }

        .dropdown-link:last-child {
            border-bottom: none;
        }

        .dropdown-link:hover,
        .dropdown-link:focus-visible {
            background-color: #333;
            color: var(--color-orange);
            outline: none; /* background change IS the focus indicator here */
        }

        /* ── Additional focus style for the About Us link ── */
        .nav-link-wrapper .nav-link:focus-visible {
            outline: 2px solid var(--color-white);
            outline-offset: 2px;
            border-radius: 2px;
        }

        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 10px;
            /* Changed from <div> to <button> — reset button styles */
            background: none;
            border: none;
        }

        .mobile-menu-btn:focus-visible {
            outline: 2px solid var(--color-white);
            border-radius: 4px;
        }

        .mobile-menu-btn span {
            width: 25px;
            height: 3px;
            background-color: var(--color-white);
            transition: all 0.3s ease;
            display: block;
        }

        /* Hamburger → X animation */
        .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }
        .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }



/* ===========================
   Main Content
   =========================== */
main {
    margin-top: var(--header-height);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(90vh - var(--header-height));
    background-color: var(--color-light-grey);
    display: flex;
    align-items: flex-end;
    padding: 60px;
    overflow: hidden;
}


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-mission {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-white);
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;;
    line-height: 1.3;
}

.hero-mission span {
    display: block;
}

/* Two Column Section */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.question-block h2 {
    font-size: 2.5rem;
    font-style: var(--font-heading);
    line-height: 1.2;
}

.question-block .highlight {
    display: inline-block;
    position: relative;
}

.question-block .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -10px;
    right: -10px;
    top: -5px;
    background-color: var(--color-turquoise);
    z-index: -1;
    transform: rotate(-2deg);
}

.answer-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Testimonial Banner */
.testimonial-banner {
    background-color: var(--color-pink);
    padding: 60px;
    text-align: center;
}

.testimonial-quote {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 1rem;
    color: #333;
}

/* Map Section */
.map-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-container {
    background-color: var(--color-light-grey);
    min-height: 400px;
    border-radius: 8px;
}

.map-text {
    display: flex;
    align-items: center;
}

.map-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Features Section */
    
        .features-container {
            max-width: 1200px;
            margin: 0 auto;
            gap: 60px;
            padding: 80px 60px;
        }


         .features-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 50px;
            margin-top: 20px;
        }
        
        @media (max-width: 768px) {
            .features-grid {
                grid-template-columns: 1fr;
            }
        }


        .feature-item {
            display: flex;
            gap: 20px;
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        .feature-icon {
            flex-shrink: 0;
            width: 48px;
            height: 48px;
        }

        .feature-content {
            flex: 1;
        }

        .feature-title {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 8px;
        }

        .feature-description {
            font-size: 15px;
            color: #666;
            line-height: 1.6;
        }


/* ===========================
   Tour Pages
   =========================== */
.tour-page {
    padding: 110px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.tour-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
    gap: 40px;
    margin-bottom: 60px;
}  

.tour-details-box {
    background-color: var(--color-light-grey);
    padding: 30px;
    border-radius: 8px;
}

.tour-details-box h3 {
    margin-bottom: 20px;
    color: var(--color-black);
}

.tour-details-box ul {
    list-style: none;
}

.tour-details-box li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.tour-details-box li:last-child {
    border-bottom: none;
}

.photo-container {
    overflow: hidden;
    position: relative;
    min-height: 0;
  }

  .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }

.tour-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.tour-cta {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--color-turquoise);
    border-radius: 8px;
    text-align: center;
}

/* Under Construction */
.under-construction {
    text-align: center;
    padding: 100px 60px;
}

.under-construction img {
    max-width: 300px;
    margin-bottom: 30px;
}

/* ===========================
   About Us Pages
   =========================== */
.team-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 80px 60px;
    flex-wrap: wrap;
}

.team-card {
    width: 300px;
    perspective: 1000px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--color-white);
    border: 15px solid var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.team-card-front img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.team-card-front .name {
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.team-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Page */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-box {
    background-color: var(--color-light-grey);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-box .quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-box .author {
    font-size: 1rem;
    color: #666;
}

/* Contact Page */
.contact-section {
    padding: 80px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ===========================
   Blog Page
   =========================== */
.blog-list {
    padding: 80px 60px;
    max-width: 1000px;
    margin: 100px auto;
}

.blog-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.blog-item img {
    width: 100%;
    height: 150px;
    border-radius: 8px; 
    margin-top: 15px;
    object-fit: cover;        /* crops instead of squashing */
    object-position: bottom;
}

.blog-content h2 {
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-content h2:hover {
    color: var(--color-orange);
}

.blog-date {
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 10px;
}

.blog-excerpt {
    background: linear-gradient(to bottom, #333 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.indented {
  padding-left: 50pt;
  padding-right: 50pt;
}


/* ===========================
   Booking Page
   =========================== */
.booking-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-container {
    background-color: var(--color-light-grey);
    padding: 30px;
    border-radius: 8px;
}


.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding-bottom: 0;
}

.footer-signup {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
}

.footer-signup p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.signup-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.signup-form input {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
}

/* Add this - wraps each label+input pair */
.signup-form .form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* Add this - styles the labels */
.signup-form label {
    color: var(--color-white);
    font-size: 0.9rem;
}

.signup-form button[type="submit"] {
    display: block;
    margin-top: 1rem;
}

.signup-form button {
    padding: 12px 30px;
    background-color: var(--color-orange);
    color: var(--color-black);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-form button:hover {
    background-color: #e55a2b;
}


/* ===========================
   Legal links
   =========================== */
    .footer-lower {
      background: #ffffff;
       padding: 22px 48px;
       width: 100%;
       box-sizing: border-box;
       margin: 0; 
}

    .footer-lower-inner {
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .footer-lower-copy {
      font-size: 0.8rem;
      color: var(--color-black);
      letter-spacing: 0.02em;
    }

    .legal-links {
      display: flex;
      align-items: center;
      gap: 6px;
      list-style: none;
      flex-wrap: wrap;
    }

    .legal-links li {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .legal-links li + li::before {
      content: '·';
      color: var(--color-black);
      font-size: 1rem;
    }

    .legal-links a {
      font-size: 0.8rem;
      color: var(--color-black);
      text-decoration: none;
      letter-spacing: 0.02em;
      transition: color 0.15s;
    }

    .legal-links a:hover {
      color: var(--color-pink);
      text-decoration: underline;
    }

/* Accessibility Page */
.accessibility-section {
    padding: 80px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.accessibility-section h2 {
    margin-bottom: 20px;
}

.accessibility-section p {
    margin-bottom: 30px;
    line-height: 1.8;
}

/*PRIVACY NOTICE*/
.bullet-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

p + .bullet-list {
  margin-top: 0;
}

/*COOKIE POLICY*/
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}

th {
  background-color: #f5f5f5;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #fafafa;
}
/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: #e55a2b;
}

.btn-secondary {
    background-color: var(--color-turquoise);
    color: var(--color-black);
}

/* ===========================
   Mobile Responsive
   =========================== */
@media (max-width: 806px) {
    .header {
        padding: 0 20px;
    }

    h1 {
    font-size: 2.5rem;
    display: block;
    margin-top: 1rem;
    }

   

    .nav {
        display: none;
    }

    .logo {
        position: relative;
        z-index: 101;
    }

    .logo.hidden {
    display: none;
    }   

     .mobile-menu-btn {
        z-index: 101;
        position: relative;
    }

    .nav.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-black);
        flex-direction: column;
        align-items: center;
        justify-content: center; /* changed from center to flex-end */
        padding-bottom: 40px; /* stops links sitting right at the very bottom */
        z-index: 100;
    }

     .nav.active .dropdown-link {
        color: var(--color-white);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        text-align: center;
    }

    .nav-item {
        width: 80%;
        border-bottom: 1px solid #333;
    }

    .nav-link {
        font-size: 18pt;
        padding: 20px 0;
        text-align: center;
        width: 100%;
        display: block;
    }

    .dropdown {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 0px;
        text-align: center;
    }

    .dropdown.active {
        display: block;
    }

    
    .dropdown-link {
        text-align: center;
        font-size: 14pt;
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        flex-direction: column;
        height: 100vh;
        padding: 0;        /* remove desktop padding */
        overflow: hidden;
    }

    .hero-image {
        position: relative;  /* overrides absolute — puts image back in normal flow */
        width: 100%;
        height: 55%;         /* takes up top half */
        object-fit: cover;
        object-position: center;
        filter: grayscale(100%); /* preserves your desktop style */
    }

    .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 45%;         /* takes up bottom half */
        display: flex;
        align-items: top;
        justify-content: left;
        padding: 1.5rem;
        background-color: var(--color-black); /* fills the background behind text */
    }

    .hero-mission {
        font-size: 1.2rem;
        text-align: left;
        line-height: 1.8;
        color: var(--color-white);
    }

    /* Stack each span onto its own line */
    .hero-mission span {
        display: block;
    }

    .two-column,
    .map-section,
    .booking-page {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .tour-intro {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .team-section {
        padding: 40px 20px;
    }

    .blog-item {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 20px 20px;
    }

    .footer-lower {
        padding: 18px 20px;
    }

    .footer-lower-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .signup-form {
        flex-direction: column;
        align-items: center;
    }

    .signup-form input {
        width: 100%;
    }


}

