/* =========================================================
   A Touch of Perspective — stylesheet
   Edit the colors below to re-theme the whole site.
   ========================================================= */
:root {
  --cream: #f5eee4;
  --sand: #e8dccb;
  --clay: #b5603a;       /* terracotta accent */
  --clay-dark: #8f4526;
  --umber: #3b2a20;      /* main text */
  --sage: #7d8466;
  --muted: #6e5d50;
  --white: #fffaf3;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--umber);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .75rem;
  font-weight: 500;
  color: var(--clay);
  margin: 0 0 1rem;
}

.container { width: min(var(--max), 90%); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--sand { background: var(--sand); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  border: 1px solid var(--clay);
  background: var(--clay);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .25s, color .25s;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--umber); }
.btn--outline { background: transparent; color: var(--clay); }
.btn--outline:hover { background: var(--clay); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 228, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 42, 32, .08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
}
.logo em { color: var(--clay); font-style: italic; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 400;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--clay); border-color: var(--clay); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: var(--umber);
  content: "";
  transition: transform .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(59, 42, 32, .1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid rgba(59, 42, 32, .06); }
  .nav-links a { display: block; padding: 1rem 5%; border: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: var(--umber) url("../images/hero-beach.jpg") center 18% / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 26, 18, .25), rgba(40, 26, 18, .55));
}
.hero-inner { position: relative; z-index: 1; padding: 2rem; max-width: 52rem; }
.hero .eyebrow { color: var(--sand); }
.hero p { font-size: 1.2rem; opacity: .92; margin: 0 auto 2.2rem; max-width: 34rem; }
.hero .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.page-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Featured / gallery grids ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.featured a { overflow: hidden; border-radius: var(--radius); }
.featured img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .6s ease;
}
.featured a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr 1fr; } }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 2.5rem;
}
.filter {
  background: transparent;
  border: 1px solid rgba(59, 42, 32, .25);
  padding: .55rem 1.3rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--umber);
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--clay); color: var(--clay); }
.filter.active { background: var(--clay); border-color: var(--clay); color: var(--white); }

.gallery {
  columns: 3 280px;
  column-gap: 1.2rem;
}
.gallery figure {
  margin: 0 0 1.2rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem .9rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.2rem;
  background: linear-gradient(transparent, rgba(40, 26, 18, .7));
  opacity: 0;
  transition: opacity .3s;
}
.gallery figure:hover figcaption,
.gallery figure:focus-visible figcaption { opacity: 1; }
.gallery figure.hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 19, 13, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; width: auto; border-radius: var(--radius); }
.lightbox p {
  position: absolute;
  bottom: 1.5rem;
  left: 0; right: 0;
  text-align: center;
  color: var(--sand);
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
}
.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: var(--sand);
  font-size: 2.4rem;
  cursor: pointer;
  padding: .5rem 1rem;
  line-height: 1;
}
.lb-btn:hover { color: var(--white); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Services / cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 42, 32, .06);
}
.card .num { font-family: var(--serif); font-size: 2.4rem; color: var(--clay); line-height: 1; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  max-width: 48rem;
  margin: 0 auto 1rem;
}
.quote-by { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--umber);
  color: var(--cream);
  text-align: center;
}
.cta .lead { color: var(--sand); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin: 0; }
.contact-info dt {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  color: var(--clay);
  margin-top: 1.6rem;
}
.contact-info dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.35rem; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--clay); }

form { display: grid; gap: 1.2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: .4rem;
  font-weight: 400;
}
input, select, textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(59, 42, 32, .2);
  background: var(--white);
  border-radius: var(--radius);
  font: inherit;
  color: var(--umber);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 96, 58, .15);
}
textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand);
  padding: 3.5rem 0 2rem;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.footer-links a:hover { color: var(--clay); }
.copyright { width: 100%; text-align: center; color: var(--muted); margin-top: 2rem; font-size: .8rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Logo mark */
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.site-footer .logo img { width: 56px; height: 56px; }
@media (max-width: 420px) { .logo { font-size: 1.3rem; } .logo img { width: 36px; height: 36px; } }
