/* ============================================================
   pages.css — shared styles for all inner pages
   Loads AFTER merged.css, which defines all base variables/components
   ============================================================ */

/* ---- NAV override: inner pages have same nav but may not have .nav-cta on mobile ---- */
@media (min-width: 1001px) {
  .nav-links { display: flex; }
  .nav-cta   { display: block; }
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 160px 0 90px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139,115,85,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.02em; margin: 0;
}
.page-hero h1 em { color: var(--accent); font-style: italic; }
.page-hero p {
  font-size: 18px; max-width: 520px;
  margin: 22px auto 0; color: rgba(26,26,26,0.68); line-height: 1.7;
}

/* ---- SCROLL REVEAL ANIMATIONS ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

/* ---- PAGE HERO ANIMATION ---- */
.hero-animate-in { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-in:nth-child(2) { animation-delay: 0.1s; }
.hero-animate-in:nth-child(3) { animation-delay: 0.2s; }
.hero-animate-in:nth-child(4) { animation-delay: 0.3s; }

/* ---- ABOUT PAGE ---- */
.credentials-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 64px;
}
.cred-item {
  background: #fff; border: 1px solid var(--line);
  padding: 40px 32px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cred-item:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.cred-label {
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.cred-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px; font-weight: 400; line-height: 1.1;
}

.values-grid {
  margin-top: 72px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.value-item {
  padding: 48px 36px; border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: rgba(139,115,85,0.04); }
.value-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 56px; color: var(--accent);
  opacity: 0.25; line-height: 1; margin-bottom: 16px;
  transition: opacity 0.3s ease;
}
.value-item:hover .value-num { opacity: 0.55; }
.value-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px; font-weight: 400; margin-bottom: 12px;
}
.value-desc { font-size: 14px; color: rgba(26,26,26,0.68); line-height: 1.8; }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.45fr;
  gap: 100px; align-items: start;
}
.contact-info-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 54px); font-weight: 400; margin: 0 0 22px;
}
.contact-info-title em { color: var(--accent); font-style: italic; }
.contact-info p { font-size: 16px; color: rgba(26,26,26,0.75); line-height: 1.85; margin-bottom: 40px; }
.contact-detail { margin-bottom: 26px; }
.contact-detail-label {
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.contact-detail-value { font-size: 15px; color: var(--text); }
.contact-detail-value a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.contact-detail-value a:hover { border-color: var(--accent); color: var(--accent); }

/* Light form (for contact page main section) */
.contact-form-light .field input,
.contact-form-light .field textarea,
.contact-form-light .field select {
  width: 100%; border: none;
  border-bottom: 1px solid var(--line);
  background: transparent; padding: 14px 0;
  font: inherit; color: var(--text); outline: none;
  transition: border-color 0.2s ease; font-size: 15px;
  border-radius: 0;
}
.contact-form-light .field input::placeholder,
.contact-form-light .field textarea::placeholder { color: rgba(26,26,26,0.38); }
.contact-form-light .field input:focus,
.contact-form-light .field textarea:focus,
.contact-form-light .field select:focus { border-color: var(--accent); }
.contact-form-light .field textarea { min-height: 130px; resize: vertical; }
.contact-form-light .field select { appearance: none; cursor: pointer; }
.contact-form-light .field { margin-top: 28px; }

/* FAQ */
.faq-list { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px; font-weight: 400;
  cursor: pointer; padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none; transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px; border: 1px solid var(--line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background 0.2s, border-color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-a {
  font-size: 15px; color: rgba(26,26,26,0.72);
  line-height: 1.85; max-height: 0; overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22,1,0.36,1), padding 0.3s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 26px; }

/* ---- BLOG PAGE ---- */
.blog-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--line);
  margin-bottom: 80px; background: #fff;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}
.blog-featured:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.blog-featured-image { overflow: hidden; min-height: 420px; }
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.blog-featured:hover .blog-featured-image img { transform: scale(1.04); }
.blog-featured-content { padding: 60px 52px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-tag {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.blog-featured-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3.5vw, 44px); font-weight: 400;
  line-height: 1.15; margin: 0 0 18px;
  transition: color 0.2s;
}
.blog-featured:hover .blog-featured-title { color: var(--accent); }
.blog-featured-excerpt { font-size: 16px; color: rgba(26,26,26,0.7); line-height: 1.8; margin-bottom: 18px; }
.blog-featured-meta { font-size: 11px; letter-spacing: 0.1em; color: rgba(26,26,26,0.4); text-transform: uppercase; margin-bottom: 32px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 40px; }
.blog-card { cursor: pointer; }
.blog-card-image {
  overflow: hidden; aspect-ratio: 4/3; background: var(--warm);
  margin-bottom: 24px; position: relative;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-cat {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.blog-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 400;
  line-height: 1.3; margin: 0 0 12px;
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--accent); }
.blog-excerpt { font-size: 14px; color: rgba(26,26,26,0.68); line-height: 1.75; margin-bottom: 14px; }
.blog-meta { font-size: 11px; letter-spacing: 0.1em; color: rgba(26,26,26,0.38); text-transform: uppercase; }

.newsletter {
  background: var(--dark-2); color: #fff;
  padding: 110px 0; text-align: center;
}
.newsletter-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 68px); font-weight: 400;
  margin: 0 0 14px; line-height: 1.05;
}
.newsletter-heading em { color: var(--accent-lt); font-style: italic; }
.newsletter-sub { font-size: 16px; color: rgba(255,255,255,0.65); margin: 0 0 40px; }
.newsletter-form {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  max-width: 460px; margin: 0 auto; border: 1px solid rgba(255,255,255,0.2);
}
.newsletter-form input {
  flex: 1; min-width: 200px;
  background: transparent; border: none;
  padding: 16px 22px; font-family: inherit; font-size: 14px;
  color: #fff; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.38); }
.newsletter-form .btn {
  border-radius: 0; border: none; border-left: 1px solid rgba(255,255,255,0.2);
  color: #fff; white-space: nowrap; padding: 16px 28px;
}
.newsletter-form .btn:hover { background: #fff; color: #111; }

/* ---- PORTFOLIO PAGE ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 60px;
}
.img-wrap {
  overflow: hidden; aspect-ratio: 1 / 1;
  cursor: zoom-in; position: relative;
  background: var(--warm);
}
.img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(17,17,17,0);
  transition: background 0.35s ease;
}
.img-wrap:hover::after { background: rgba(17,17,17,0.12); }
.img-wrap img,
.img-wrap video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.img-wrap:hover img,
.img-wrap:hover video { transform: scale(1.05); }

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(11,11,11,0.94); z-index: 999;
  align-items: center; justify-content: center; padding: 40px;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  animation: lbIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes lbIn { from { opacity:0; transform: scale(0.94); } to { opacity:1; transform:scale(1); } }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 28px; color: #fff; cursor: pointer;
  background: none; border: none; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); }

/* ---- SHARED SECTIONS used on inner pages ---- */
/* Divider line */
.divider { width: 48px; height: 1px; background: var(--accent); opacity: 0.5; margin: 24px 0; }

/* Pull quote */
.pull-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic; line-height: 1.45;
  color: var(--accent); max-width: 680px;
  padding: 40px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin: 60px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .credentials-row { grid-template-columns: 1fr 1fr; gap: 2px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-item { border-right: 1px solid var(--line) !important; }
  .value-item:nth-child(2n) { border-right: none !important; }
  .value-item:nth-child(3), .value-item:nth-child(4) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-image { min-height: 300px; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-hero { padding: 130px 0 70px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-content { padding: 36px 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none !important; border-top: 1px solid var(--line) !important; }
  .value-item:first-child { border-top: none !important; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .credentials-row { grid-template-columns: 1fr; }
}

/* ── BLOG POST / ARTICLE PAGE ──────────────────────────────── */
.article-hero {
  padding: 150px 0 70px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,115,85,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.article-back {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(26,26,26,0.45); display: inline-flex; align-items: center;
  gap: 8px; margin-bottom: 36px;
  transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }
.article-back::before { content: '←'; font-size: 14px; }
.article-cat {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; display: block;
}
.article-h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 400; line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 28px;
  max-width: 820px;
}
.article-h1 em { color: var(--accent); font-style: italic; }
.article-meta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(26,26,26,0.4);
}
.article-hero-img {
  width: 100%; max-height: 520px;
  object-fit: cover; object-position: center top;
  display: block; margin-top: 64px;
}

/* Article body */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
  padding: 72px 0 100px;
}
.article-body {
  font-size: 17px; line-height: 1.9;
  color: rgba(26,26,26,0.82);
}
.article-body h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; line-height: 1.1;
  color: var(--text); margin: 52px 0 18px;
}
.article-body h2 em { color: var(--accent); font-style: italic; }
.article-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 400;
  color: var(--text); margin: 36px 0 12px;
}
.article-body p { margin: 0 0 22px; }
.article-body ul {
  padding-left: 0; list-style: none; margin: 0 0 28px;
}
.article-body ul li {
  padding: 10px 0 10px 22px; position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 16px; color: rgba(26,26,26,0.78);
}
.article-body ul li:first-child { border-top: 1px solid var(--line); }
.article-body ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent);
}
.article-body strong { font-weight: 500; color: var(--text); }
.article-pull {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-style: italic; line-height: 1.4;
  color: var(--accent); padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 44px 0;
}
.article-cta-box {
  background: var(--dark-2); color: #fff;
  padding: 44px 40px; margin-top: 52px;
}
.article-cta-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px; font-weight: 400;
  margin: 0 0 14px; color: #fff;
}
.article-cta-box h3 em { color: var(--accent-lt); font-style: italic; }
.article-cta-box p {
  font-size: 15px; color: rgba(255,255,255,0.65);
  line-height: 1.75; margin: 0 0 28px;
}

/* Sidebar */
.article-sidebar {
  position: sticky; top: 100px;
}
.sidebar-card {
  border: 1px solid var(--line);
  padding: 32px 28px; background: var(--warm);
  margin-bottom: 24px;
}
.sidebar-card-label {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.sidebar-card h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 400; margin: 0 0 10px;
}
.sidebar-card p {
  font-size: 13px; color: rgba(26,26,26,0.65);
  line-height: 1.75; margin: 0 0 20px;
}
.sidebar-related-title {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(26,26,26,0.4); margin-bottom: 16px; display: block;
}
.sidebar-related-link {
  display: block; font-family: "Cormorant Garamond", serif;
  font-size: 18px; font-weight: 400;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--text); transition: color 0.2s, padding-left 0.2s;
}
.sidebar-related-link:last-child { border-bottom: none; }
.sidebar-related-link:hover { color: var(--accent); padding-left: 6px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { position: static; margin-top: 60px; padding-top: 48px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .article-hero { padding: 120px 0 50px; }
  .article-hero-img { max-height: 300px; }
  .article-layout { padding: 48px 0 70px; }
}

/* ── Blog Pagination ────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 60px 0 20px;
  flex-wrap: wrap;
}
.blog-page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid var(--line, #e4e0d8);
  color: var(--text, #1a1a1a);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-radius: 2px;
}
.blog-page-num:hover {
  background: var(--text, #1a1a1a);
  color: #fff;
  border-color: var(--text, #1a1a1a);
}
.blog-page-active {
  background: var(--text, #1a1a1a);
  color: #fff !important;
  border-color: var(--text, #1a1a1a);
  pointer-events: none;
}
.blog-page-prev,
.blog-page-next {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  padding: 10px 0;
  transition: opacity 0.2s;
}
.blog-page-prev:hover,
.blog-page-next:hover { opacity: 0.6; }
.blog-page-disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ── Text-only blog cards (no image) ───────────── */
.blog-card .blog-cat {
  font-family: "Jost", sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  margin-bottom: 10px;
}
.blog-card .blog-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text, #1a1a1a);
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--accent, #8b7355); }
.blog-card .blog-excerpt {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26,26,26,0.65);
  margin-bottom: 14px;
}
.blog-card .blog-meta {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.35);
}

/* Text-only cards: no image box height needed */
.blog-card:not(:has(.blog-card-image)) {
  padding: 36px 32px;
  border: 1px solid var(--line, #e4e0d8);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:not(:has(.blog-card-image)):hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
