/* ==========================================================================
   Forgotten Skye — Shared Stylesheet
   Single source of truth for all pages. Edit here, applies everywhere.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #F0EBE1;
  --bg-alt:      #E8E1D4;
  --ink:         #2C2C27;
  --ink-muted:   #7C6F5B;
  --accent:      #4A5C4E;
  --rule:        #D4C9B5;
  --white:       #FDFAF6;

  --display:     'Playfair Display', Georgia, serif;
  --body:        'Inter', system-ui, sans-serif;

  --max:         860px;
  --gap:         clamp(3rem, 8vw, 6rem);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Perfect horizontal line alignment & Core Styles */
nav .mark {
  position: absolute;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  height: 110px;
  width: 96px; /* Matched to the proportion scale of your 130x148 viewbox */
  pointer-events: none;
}

/* SOLID BACKGROUND & SHADOW MASK (Forces container logic via CSS) */
nav .mark:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); /* Natively matches your navbar theme */
  z-index: -1; /* Pushes behind the SVG lines and text */

  /* Creates a matching vector mask for the lower triangle section */
  clip-path: polygon(4.6% 50%, 95.4% 50%, 50% 97.3%);

  /* Subtle drop shadow showing exclusively under the lower tip */
  filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.12));
}

nav .mark a {
  display: block;
  height: 100%;
  width: auto;
  pointer-events: auto;
}

nav .mark svg {
  height: 100%;
  width: auto;
  pointer-events: auto;
}

/* ── Geometric Hover Animation Elements ─────────────────── */
nav .mark g,
nav .mark text {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), fill 0.3s, stroke 0.3s;
}
nav .mark g {
  transform-origin: center;
}
nav .mark text {
  fill: #2C2C27;
}

/* Trigger animations simultaneously on hover */
nav .mark:hover g {
  transform: translateY(3px);
  stroke: var(--accent, #4A5C4E);
}
nav .mark:hover text {
  transform: translateY(3px);
  fill: var(--accent, #4A5C4E);
}

/* ── Nav Links ─────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}




/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

section {
  padding: var(--gap) 0;
}

section + section {
  border-top: 1px solid var(--rule);
}

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  padding-top: calc(56px + var(--gap));
  padding-bottom: var(--gap);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 1.75rem;
}

h1 em {
  font-style: italic;
  color: var(--ink-muted);
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover {
  background: var(--ink);
  text-decoration: none;
  color: var(--white);
}

.hero-rule {
  margin-top: var(--gap);
  width: 48px;
  height: 1px;
  background: var(--rule);
}

/* ── Section headings ───────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section-intro {
  color: var(--ink-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* ── About ──────────────────────────────────────────────── */
#about .about-body {
  max-width: 620px;
}

#about p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

#about p:last-child { margin-bottom: 0; }

.about-detail {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.detail-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.detail-item span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ── Services ───────────────────────────────────────────── */
#services {
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-alt);
  padding: 2rem 1.75rem;
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Portfolio ──────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}

.portfolio-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-thumb a:hover img {
  transform: scale(1.03);
}

.portfolio-body {
  padding: 1.4rem 1.5rem;
}

.portfolio-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-body h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.portfolio-body h3 a {
  color: var(--ink);
}
.portfolio-body h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.portfolio-body p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── Contact ────────────────────────────────────────────── */
#contact {
  background: var(--ink);
}

#contact .section-label { color: var(--rule); }

#contact h2 {
  color: var(--white);
}

#contact .section-intro {
  color: var(--rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
}

.contact-item strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rule);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--bg);
}

.contact-item a:hover {
  color: var(--white);
}

.contact-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #3D3D38;
  font-size: 0.82rem;
  color: #7C7C72;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid #3D3D38;
}

footer p {
  font-size: 0.75rem;
  color: #7C7C72;
}

footer a {
  color: #7C7C72;
  font-size: 0.75rem;
}

footer a:hover { color: var(--bg); }

/* ── Hamburger ──────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem clamp(1.5rem, 5vw, 3rem);
    font-size: 0.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Multi-page additions — article, blog index, location & interior pages
   ========================================================================== */

/* ── Interior page hero (smaller than home hero) ─────────── */
.page-hero {
  padding: 9rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
}
.page-hero .container { max-width: 760px; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1rem;
}
.page-hero p {
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Article body ────────────────────────────────────────── */
.article {
  padding: 3.5rem 0 4.5rem;
}
.article .container { max-width: 720px; }

.article-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.article h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
  line-height: 1.2;
}
.article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}
.article p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.article ul, .article ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}
.article li {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.article a:not(.hero-cta):not(.area-card):not(.post-card) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article strong { color: var(--ink); font-weight: 600; }
.article blockquote {
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-muted);
  font-style: italic;
}

/* Article CTA block at the foot of each post */
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.article-cta p { margin: 0 0 1.2rem; color: var(--ink-muted); }

/* ── Blog index listing ──────────────────────────────────── */
.post-list {
  padding: 3.5rem 0 4.5rem;
}
.post-list .container { max-width: 760px; }
.post-card {
  display: block;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.post-card:last-child { border-bottom: none; }
.post-card .post-date {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.post-card h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.4rem 0 0.5rem;
  transition: color 0.2s ease;
}
.post-card:hover h2 { color: var(--accent); }
.post-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Service-areas hub grid ──────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.area-card {
  display: block;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,44,39,0.08);
}
.area-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.area-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
