/*
Theme Name: Lanka Kite Trips
Theme URI: https://lankakitetrips.com/
Author: Codex
Description: Custom WordPress theme matching the lankakitetrips static website.
Version: 1.0.4
License: GPL-2.0-or-later
Text Domain: lankakitetrips
*/
:root {
  --ink: #112225;
  --muted: #607173;
  --paper: #f6f2e8;
  --white: #fffef8;
  --reef: #087887;
  --reef-dark: #064c56;
  --mangrove: #224f3d;
  --sun: #f1b83b;
  --coral: #dc674e;
  --sky: #8ec5d9;
  --line: rgba(17, 34, 37, 0.16);
  --shadow: 0 22px 70px rgba(15, 42, 47, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.main-nav ul,
.site-footer nav ul {
  display: flex;
  align-items: center;
  gap: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav ul {
  flex-wrap: wrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(4, 30, 35, 0.84), rgba(4, 30, 35, 0.34));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  font-weight: 800;
}

.main-nav a,
.header-action {
  text-decoration: none;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&q=84&w=1800") center / cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 28, 33, 0.9), rgba(4, 28, 33, 0.42) 55%, rgba(4, 28, 33, 0.72)),
    linear-gradient(0deg, rgba(4, 28, 33, 0.78), rgba(4, 28, 33, 0.12) 56%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  width: 100%;
  padding: 138px clamp(20px, 5vw, 72px) 46px;
}

.hero-copy {
  max-width: 940px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 5vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #102326;
  background: var(--sun);
}

.button.light {
  color: #102326;
  background: var(--white);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(6, 55, 63, 0.75);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-panel strong {
  display: block;
  margin-bottom: 22px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.hero-panel dl {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.hero-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
}

.hero-panel dt {
  color: rgba(255, 255, 255, 0.66);
}

.hero-panel dd {
  margin-bottom: 0;
  font-weight: 900;
  text-align: right;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-strip article {
  min-height: 190px;
  padding: 30px clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

.quick-strip article:last-child {
  border-right: 0;
}

.quick-strip span {
  color: var(--coral);
  font-weight: 900;
}

.quick-strip strong {
  display: block;
  margin-top: 18px;
  font-size: 1.2rem;
}

.quick-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section {
  padding: clamp(66px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
  background: #fdfbf4;
}

.intro-copy > p,
.section-heading > p,
.season-copy > p,
.contact-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.mini-metrics article {
  min-height: 120px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mini-metrics strong {
  display: block;
  color: var(--reef-dark);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.mini-metrics span {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.section-heading > p {
  max-width: 540px;
  margin-bottom: 0;
}

.spot-section {
  background: var(--paper);
}

.spot-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.feature-spot,
.spot-cards article,
.plan-grid article,
.blog-cards article,
.faq-list details {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 44px rgba(16, 46, 51, 0.08);
}

.feature-spot {
  overflow: hidden;
}

.feature-spot img {
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  background: #c9dfdf;
}

.feature-spot div {
  padding: 28px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--reef-dark);
  background: rgba(8, 120, 135, 0.12);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-spot p,
.spot-cards p,
.stay-card p,
.plan-grid p,
.plan-grid li,
.blog-cards span,
.faq-list p {
  color: var(--muted);
}

.spot-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spot-cards article {
  min-height: 260px;
  padding: 28px;
}

.spot-cards span,
.plan-grid span,
.stay-card .pill {
  color: var(--coral);
  background: rgba(220, 103, 78, 0.1);
}

.spot-cards span,
.plan-grid span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stays {
  background: #f0eadb;
}

.stay-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 254, 248, 0.66);
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  color: var(--white);
  background: var(--reef-dark);
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stay-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stay-card.is-hidden {
  display: none;
}

.stay-image {
  min-height: 210px;
  background-position: center;
  background-size: cover;
}

.stay-image.margarita-school {
  background-image:
    linear-gradient(180deg, rgba(8, 60, 65, 0.02), rgba(8, 60, 65, 0.18)),
    url("assets/images/margarita-kite-school.jpg");
}

.stay-image.village {
  background-image:
    linear-gradient(180deg, rgba(8, 60, 65, 0.02), rgba(8, 60, 65, 0.2)),
    url("assets/images/margarita-village.jpeg");
}

.stay-image.windy {
  background-image:
    linear-gradient(180deg, rgba(8, 60, 65, 0.02), rgba(8, 60, 65, 0.18)),
    url("assets/images/windy-waves.webp");
}

.stay-image.hiru {
  background-image:
    linear-gradient(180deg, rgba(8, 60, 65, 0.02), rgba(8, 60, 65, 0.18)),
    url("assets/images/hiru-resort.jpg");
}

.stay-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.stay-body ul {
  display: grid;
  gap: 6px;
  margin: 6px 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.stay-body a {
  margin-top: auto;
  color: var(--reef-dark);
  font-weight: 900;
  text-decoration: none;
}

.planner {
  background: #102326;
  color: var(--white);
}

.planner .section-heading > p,
.planner > .section-heading > p {
  color: rgba(255, 255, 255, 0.72);
}

.planner .plan-grid p,
.planner .plan-grid li {
  color: var(--muted) !important;
}

.planner .plan-grid article,
.planner .plan-grid article h3 {
  color: var(--ink) !important;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-grid article {
  min-height: 390px;
  padding: 30px;
  color: var(--ink);
}

.plan-grid ol {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 19px;
}

.season {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  background:
    linear-gradient(rgba(246, 242, 232, 0.92), rgba(246, 242, 232, 0.96)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&q=82&w=1800") center / cover;
}

.season-table {
  display: grid;
  gap: 14px;
}

.season-table article {
  padding: 26px;
  border-left: 6px solid var(--reef);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.92);
  box-shadow: 0 14px 44px rgba(16, 46, 51, 0.08);
}

.season-table span {
  color: var(--reef);
  font-weight: 900;
}

.season-table p {
  margin-bottom: 0;
  color: var(--muted);
}

.blog-preview {
  background: var(--white);
}

.text-link {
  color: var(--reef-dark);
  font-weight: 900;
  text-decoration: none;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-cards article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.blog-cards p {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-cards a {
  text-decoration: none;
}

.blog-cards span {
  margin-top: auto;
  font-weight: 900;
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(34px, 7vw, 90px);
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 16px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 90px);
  background: var(--reef-dark);
  color: var(--white);
}

.contact-copy {
  position: sticky;
  top: 108px;
  align-self: start;
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  width: fit-content;
  color: var(--sun);
  font-weight: 900;
  text-decoration: none;
}

.trip-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.trip-form label {
  display: grid;
  gap: 8px;
  color: #294144;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfaf4;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--reef-dark);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #071d21;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--sun);
  font-weight: 800;
  text-decoration: none;
}

.blog-header {
  background: rgba(7, 29, 33, 0.96);
}

.main-nav a[aria-current="page"] {
  color: var(--sun);
}

.blog-main {
  padding-top: 84px;
}

.blog-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: clamp(70px, 9vw, 126px) clamp(20px, 5vw, 72px) 48px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 35, 40, 0.88), rgba(7, 35, 40, 0.44)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&q=84&w=1800") center / cover;
}

.blog-hero > div {
  max-width: 860px;
}

.blog-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.9;
}

.blog-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(46px, 7vw, 82px) clamp(20px, 5vw, 72px) clamp(70px, 9vw, 120px);
}

.post-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 14px 44px rgba(16, 46, 51, 0.08);
}

.post-card.wide {
  grid-column: span 2;
}

.category {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card p:not(.category) {
  margin: 18px 0 24px;
  color: var(--muted);
}

.read-more,
.back-link {
  color: var(--reef-dark);
  font-weight: 900;
  text-decoration: none;
}

.read-more {
  margin-top: auto;
}

.post-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 126px 24px 84px;
}

.post-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.92;
}

.post-meta {
  color: var(--muted);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
}

.post-body {
  margin-top: 40px;
  color: #28393b;
  font-size: 1.1rem;
}

.post-body h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.post-body p {
  color: #46595b;
}

@media (max-width: 1180px) {
  .stay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 8px;
    gap: 16px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    min-width: max-content;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro,
  .spot-layout,
  .season,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 174px;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 5.2rem);
  }

  .quick-strip,
  .spot-cards,
  .plan-grid,
  .blog-cards,
  .blog-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 660px) {
  .site-header {
    align-items: center;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-mark img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .main-nav {
    display: flex;
    font-size: 0.82rem;
    gap: 14px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
    line-height: 0.92;
  }

  .hero-grid {
    gap: 28px;
    padding: 144px 18px 34px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel div {
    display: grid;
    gap: 4px;
  }

  .hero-panel dd {
    text-align: left;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quick-strip,
  .spot-cards,
  .stay-grid,
  .plan-grid,
  .blog-cards,
  .blog-index-grid,
  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .post-card.wide {
    grid-column: auto;
  }

  .quick-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-strip article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    display: grid;
  }
}
