/* ========== Design tokens ========== */
:root {
  /* Base palette (Figma) */
  --darkest: #081c15;
  --dark-1: #1b4332;
  --dark-2: #2d6a4f;
  --light-2: #52b788;
  --light-1: #95d5b2;
  --lightest: #d8f3dc;
  --white: #ffffff;

  /* Semantic mapping (use these in the CSS rules) */
  --bg: var(--lightest);
  --surface: var(--white);
  --text: var(--darkest);
  --text-muted: var(--dark-1);
  --primary: var(--dark-2);
  --primary-2: var(--dark-1);
  --accent: var(--light-2);
  --accent-2: var(--light-1);

  /* Effects / utility tokens */
  --divider: #bdbdbd;
  --text-on-dark: rgba(216, 243, 220, 0.92);
  --shadow-color: rgba(8, 28, 21, 0.18);

  --radius: 16px;
  --container: 1100px;
}

/* ========== Section themes ========== */
.section--light {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

/* Reduce spacing before intro on excursion pages */
.section--tight {
  padding-bottom: 6px;
}

.section--dark {
  background: linear-gradient(
    180deg,
    rgba(8, 28, 21, 0.96),
    rgba(45, 106, 79, 0.96)
  );
  color: var(--bg);
}

/* ========== Base reset ========== */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}

body {
  font-family:
    "Cabin",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
}

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

/* ========== Layout helpers ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: 0;
}

/* ========== Header / Nav ========== */
header {
  background: var(--darkest);
  color: var(--bg);
}

header nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

header nav a {
  color: var(--bg);
  font-weight: 600;
  opacity: 0.95;
}

nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ========== Navigation ========== */
header {
  background: var(--darkest);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px) 1fr;
  align-items: center;
}

.nav-left {
  justify-self: start;
  display: flex;
  gap: 20px;
}

.nav-right {
  justify-self: stretch;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.nav-left a,
.nav-right a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.92;
}

.nav a:hover {
  opacity: 1;
}

.nav-brand {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.15rem;
  opacity: 1;
  color: var(--light-1);
  justify-self: center;
  text-align: center;
  padding: 0 12px;
}

/* ========== Destinations (details dropdown) ========== */
.nav-details {
  position: relative;
}

.nav-details summary {
  list-style: none;
  cursor: pointer;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

/* Dropdown panel */
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 28, 21, 0.95);
  border: 1px solid rgba(216, 243, 220, 0.18);
  box-shadow: 0 18px 40px rgba(8, 28, 21, 0.35);
  z-index: 50;
}

/* Links inside */
.nav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
}

.nav-panel a:hover {
  background: rgba(216, 243, 220, 0.12);
  opacity: 1;
}

/* Responsive: stack */
@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav-right {
    justify-content: flex-start;
  }
}

/* ========== Hero ========== */
.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 0;
}

/* ========== Hero Images per Destination ========== */

/* Landingpage */
.hero--home {
  background:
    linear-gradient(rgba(8, 28, 21, 0.25), rgba(8, 28, 21, 0.65)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Highlands */
.hero--highlands {
  background:
    linear-gradient(rgba(8, 28, 21, 0.25), rgba(8, 28, 21, 0.65)),
    url("../images/highlands_hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Scottish Borders */
.hero--borders {
  background:
    linear-gradient(rgba(8, 28, 21, 0.25), rgba(8, 28, 21, 0.65)),
    url("../images/borders_hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Argyll & The Isles */
.hero--argyll {
  background:
    linear-gradient(rgba(8, 28, 21, 0.25), rgba(8, 28, 21, 0.65)),
    url("../images/argyll_hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero .container {
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-card {
  margin: 0 auto;
  max-width: 520px;
  padding: 26px 28px;
  border-radius: 18px;
  background: rgba(8, 28, 21, 0.55); /* Glass panel effect */
  border: 1px solid rgba(216, 243, 220, 0.18);
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  color: var(--lightest);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(44px, 6vw, 64px);
  letter-spacing: 1px;
}

.hero .tagline {
  margin: 0 0 16px;
  color: var(--lightest);
  font-weight: 700;
  font-size: 1.15rem;
}

.hero-copy {
  margin: 0 30px 18px;
  color: var(--light-1);
  line-height: 1.5;
}

/* Responsive: card goes full width on small screens */
@media (max-width: 900px) {
  .hero .container {
    padding-top: 60px;
    padding-bottom: 46px;
  }
  .hero-card {
    margin-left: 0;
    max-width: 100%;
  }
}
/* ========== Intro ========== */
.intro-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}

.intro-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Right column */
.intro-copy {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
}

.intro-copy h2 {
  margin-top: 0;
  margin-bottom: 22px;
}

.intro-copy p {
  margin: 0 0 18px;
  line-height: 1.7;
}

/* last paragraph no extra gap */
.intro-copy p:last-child {
  margin-bottom: 0;
}

.intro-copy .cta-button {
  margin-top: auto;
  align-self: center;
}

.intro-copy ul {
  margin-bottom: 0;
}

.intro-copy p {
  margin-bottom: 18px;
}

.intro-copy p:last-of-type {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro-media img {
    height: 360px;
  }

  .intro-copy {
    max-width: 70ch;
  }
}

/* ========== Sections ========== */
section {
  padding: 72px 0;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: 0.5px;
}

.tagline {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.intro p {
  max-width: 70ch;
}

.teaser h3 {
  margin-top: 18px;
}

/* ========== Card system: base + variants ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px var(--shadow-color);
}

.card__media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 16px 16px 18px;
}

.card__body h3 {
  text-align: center;
  margin: 10px 0 10px;
}

.card__body p {
  text-align: center;
  margin: 0;
}

/* Light card (on dark section) */
.card--light {
  background: var(--bg);
  color: var(--text);
}

/* Dark card (on light section) */
.card--dark {
  background: var(--primary-2);
  color: var(--bg);
}

.card--dark .card__body p {
  color: var(--text-on-dark);
}

/* Hover zoom (applies to both variants) */
.card__media {
  overflow: hidden;
}

.card__media img {
  transition: transform 300ms ease;
}

.card:hover .card__media img {
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card__media img {
    height: 220px;
  }
}

/* ========== Trips: text left, smaller cards right ========== */

.trips-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

/* Left text column */
.trips-copy {
  max-width: 52ch;
}

/* Align top edges of trips columns */
.trips-copy h2 {
  margin-top: 0;
}

.trips-copy p {
  color: var(--text-on-dark);
}

.trips-link {
  display: inline-block;
  margin-top: 18px;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
  color: var(--bg);
  text-decoration: none;
}

.trips-link:hover {
  text-decoration: underline;
}

/* Right cards column: cards slimmer */
.trips-cards .card-grid {
  grid-template-columns: repeat(3, 210px);
  gap: 16px;
  justify-content: start;
  margin-top: 0;
}

/* Slightly reduce image height only in trips */
.trips .card__media img {
  height: 200px;
}

/* Price text toned down */
.trips .card__body p:last-child {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Responsive: stack */
@media (max-width: 1000px) {
  .trips-layout {
    grid-template-columns: 1fr;
  }

  .trips-cards .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Challenge layout ========== */
.challenge-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 90px;
  align-items: stretch;
}

.challenge-copy {
  max-width: 36ch;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.challenge-copy p {
  color: var(--text-on-dark);
}

.challenge-link {
  margin-top: auto;
  margin-bottom: 0;
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 1.35rem;
  opacity: 0.85;
}

/* ========== Challenge cards stack ========== */
.challenge-cards {
  display: grid;
  gap: 18px;
}

/* Base card */
.challenge-card {
  position: relative;
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: 0 10px 22px var(--shadow-color);
  color: #081c15;
  text-align: center;
  transition: none;
}

/* Text */
.challenge-card h3 {
  margin: 0 0 10px;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.challenge-card p {
  margin: 0 0 10px;
}

.challenge-card .examples {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== Gradient variants ========== */

/* EASY */
.challenge-card--easy {
  background: linear-gradient(90deg, #d8f3dc 0%, #468361 100%);
  color: #1b4332;
}

/* MODERATE */
.challenge-card--moderate {
  background: linear-gradient(90deg, #dbe7ff 0%, #2a599b 100%);
  color: #081c15;
}

/* HARD */
.challenge-card--hard {
  background: linear-gradient(90deg, #ffd6d6 0%, #ff1f1f 100%);
  color: #081c15;
}

/* Responsive */
@media (max-width: 1000px) {
  .challenge-layout {
    grid-template-columns: 1fr;
  }
}

/* ========== Gallery (dark section) ========== */
.section--dark .gallery-grid img {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.section--dark .gallery h2 {
  color: var(--bg);
}

/* ========== Gallery ========== */
.gallery-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.15);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 180px;
  }
}

/* ========== Image CTA ========== */
.cta-image {
  padding: 120px 0;
  background:
    linear-gradient(rgba(8, 28, 21, 0.35), rgba(8, 28, 21, 0.35)),
    url("../images/cta.jpg");
  background-size: cover;
  background-position: center;
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: 0 20px 60px rgba(8, 28, 21, 0.25);
  text-align: center;
}

.cta-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.cta-card p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(8, 28, 21, 0.25);
  text-decoration: none;
}

.cta-button:hover {
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 900px) {
  .cta-image {
    padding: 80px 0;
  }

  .cta-card {
    padding: 36px 28px;
  }
}

/* ========== Excursions overview: horizontal cards ========== */

.success-message {
  margin: 16px 0 24px;
  padding: 12px 16px;
  background: var(--light-2);
  border-radius: 8px;
  font-weight: 600;
}

.tour-list {
  display: grid;
  gap: 18px;
}

.tour-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 8px 18px var(--shadow-color);
  overflow: hidden;
}

.tour-row__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.tour-row__content h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.tour-row__content .tagline {
  margin-bottom: 12px;
}

.tour-row__content ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.tour-row__actions {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.tour-row__actions .cta-button {
  margin-left: auto;
}

.tour-row:last-child {
  margin-bottom: 0;
}

/* Visually hidden h2 for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .tour-row {
    grid-template-columns: 1fr;
  }

  .tour-row__media img {
    height: 220px;
  }
}

/* ========== Guides page: horizontal rows ========== */
.guide-list {
  display: grid;
  gap: 18px;
}

.guide-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 18px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px var(--shadow-color);
}

/* Dark variant (similar to dark teaser cards) */
.guide-row--dark {
  background: var(--primary-2);
  color: var(--bg);
}

.guide-row--dark .tagline {
  color: var(--text-on-dark);
  font-weight: 600;
}

.guide-row--dark p,
.guide-row--dark li {
  color: var(--text-on-dark);
}

.guide-row__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.guide-row__content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--bg);
}

.guide-row__content ul {
  margin: 0;
  padding-left: 18px;
}

/* Responsive */
@media (max-width: 900px) {
  .guide-row {
    grid-template-columns: 1fr;
  }
  .guide-row__media img {
    height: 240px;
  }
}

/* ========== Credits: image list ========== */
.credits-images {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.credits-image-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 6px 14px var(--shadow-color);
  align-items: center;
}

.credits-image-row img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.credits-image-meta {
  padding-left: 12px;
}

.credits-image-meta p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.credits-image-meta p:last-child {
  margin-bottom: 0;
}

/* Credits: white cards */

.credits-section .credits-image-row {
  background: #fff;
}

.section--dark .credits-image-row {
  background: #fff;
  color: var(--text);
}

.section--dark .credits-image-row p,
.section--dark .credits-image-row strong {
  color: var(--text);
}

/* Credits: code support inside dark section */
.section--dark .credits-support-row {
  background: #ffffff;
  color: var(--text);
}

.section--dark .credits-support-row p,
.section--dark .credits-support-row strong {
  color: var(--text);
}

/* Credits: support/reference list */
.credits-support {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.credits-support-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px var(--shadow-color);
  align-items: start;
}

.credits-support-row p {
  margin: 0;
}

/* Responsive */
@media (max-width: 700px) {
  .credits-image-row {
    grid-template-columns: 1fr;
  }

  .credits-image-meta {
    padding-left: 0;
  }

  .credits-image-row img {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 800px) {
  .credits-support-row {
    grid-template-columns: 1fr;
  }
}
/* ========== Authentication: Register + Login ========== */

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  padding: 24px;
  border-radius: 18px;
  background: var(--primary-2);
  color: var(--text-on-dark);
  box-shadow: 0 8px 18px var(--shadow-color);
}

.auth-card h1 {
  margin-top: 0;
}

.auth-card h1,
.auth-card p,
.auth-card label {
  color: var(--text-on-dark);
}

.auth-card form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-card label {
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-card input {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
}

.auth-card input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  border-color: var(--primary-1);
}

.auth-card .cta-button {
  margin-top: 16px;
  justify-self: center;
  border: none;
  background: var(--lightest);
  color: var(--darkest);
  transition: background-color 0.15s ease-in;
}

.auth-card .cta-button:hover,
.auth-card .cta-button:focus {
  background: var(--light-2);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--darkest);
  color: var(--bg);
  padding: 72px 0 48px;
}

.site-footer .footer-col {
  display: block;
}

.site-footer .footer-col h4,
.site-footer .footer-col ul {
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.9fr;
  gap: 36px;
  align-items: start; /* important */
}

.footer-col h4 {
  margin: 0 0 12px;
}

.footer-brand h3 {
  margin-top: 0;
  font-family: "Lora", Georgia, serif;
}

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p {
  color: rgba(216, 243, 220, 0.85);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(216, 243, 220, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.copyright {
  margin-top: 18px;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
