/*
Theme Name: Heptarch
Theme URI: https://heptarch.in
Author: Heptarch Developers
Author URI: https://heptarch.in
Description: Custom WordPress theme for Heptarch Developers Pvt Ltd — a Design + Build company based in Kerala. Features hero, services, about, projects, featured work, and contact sections. Requires ACF and Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: heptarch
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --gold:          hsl(45, 100%, 51%);
  --gold-light:    hsl(45, 100%, 65%);
  --gold-dark:     hsl(42, 100%, 42%);
  --charcoal:      hsl(0, 0%, 12%);
  --charcoal-light:hsl(0, 0%, 20%);
  --cream:         hsl(40, 33%, 97%);
  --foreground:    hsl(0, 0%, 8%);
  --background:    hsl(0, 0%, 100%);
  --muted:         hsl(0, 0%, 45%);
  --secondary-bg:  hsl(0, 0%, 96%);
  --border-color:  hsl(0, 0%, 90%);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px)  { .container { padding: 0 3rem; } }
@media (min-width: 1024px) { .container { padding: 0 6rem; } }

.section-padding {
  padding: 5rem 1.5rem;
}
@media (min-width: 768px)  { .section-padding { padding: 8rem 3rem; } }
@media (min-width: 1024px) { .section-padding { padding: 8rem 6rem; } }

.gold-line {
  width: 4rem;
  height: 2px;
  background: var(--gold);
  display: block;
}

.gold-line--center { margin: 0 auto; }

.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.5s ease-out;
}
.hover-lift:hover { transform: translateY(-8px); }

/* Scroll-triggered fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.15s; }
.fade-up.delay-2 { transition-delay: 0.30s; }
.fade-up.delay-3 { transition-delay: 0.45s; }

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-left.is-visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-right.is-visible { opacity: 1; transform: translateX(0); }
.fade-right.delay-1 { transition-delay: 0.2s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s;
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .navbar { padding: 0 3rem; } }

.navbar__logo img {
  height: 4rem;
  width: auto;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
@media (min-width: 768px) { .navbar__links { display: flex; } }

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s;
}
.navbar__links a:hover { color: var(--foreground); }

.navbar__cta {
  display: none;
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.navbar__cta:hover { background: var(--charcoal-light) !important; color: var(--cream) !important; }
@media (min-width: 768px) { .navbar__cta { display: inline-block; } }

/* Mobile toggle */
.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
@media (min-width: 768px) { .navbar__toggle { display: none; } }

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  position: relative;
  transition: background 0.3s;
}
.navbar__toggle span::before,
.navbar__toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  left: 0;
  transition: transform 0.3s;
}
.navbar__toggle span::before { top: -7px; }
.navbar__toggle span::after  { top:  7px; }

.navbar__toggle.is-open span { background: transparent; }
.navbar__toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
  background: var(--background);
  border-top: 1px solid var(--border-color);
}
.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--foreground); }

.mobile-menu__cta {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 0.75rem 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0.62);
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero__gold-line {
  width: 4rem;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(250,245,235,0.7);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero__buttons { flex-direction: row; justify-content: center; }
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--foreground);
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--gold-dark); color: var(--foreground); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(250,245,235,0.3);
  color: var(--cream);
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.btn-outline:hover { background: rgba(250,245,235,0.1); color: var(--cream); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4rem;
  background: rgba(250,245,235,0.3);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0.3; }
  50%       { transform: translateX(-50%) scaleY(0.6); opacity: 0.8; }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header .gold-line { margin: 0 auto 1.5rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.service-card {
  text-align: center;
  cursor: default;
}

.service-card__icon {
  width: 4rem;
  height: 4rem;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background 0.5s;
}
.service-card:hover .service-card__icon { background: var(--gold); }

.service-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--foreground);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.5s;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-story {
  background: var(--background);
}

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .about-story__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about-story__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.about-story__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.about-story__gold-line {
  width: 4rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
  display: block;
}

.about-story__text {
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.about-story__quote-box {
  background: var(--charcoal);
  padding: 2.5rem 3rem;
}

.about-story__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: var(--cream);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.about-story__quote-line {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  display: block;
  margin-bottom: 2rem;
}

.about-story__quote-text {
  font-family: var(--font-body);
  color: rgba(250,245,235,0.7);
  line-height: 1.8;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Values section */
.about-values {
  background: var(--secondary-bg);
}

.about-values__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.about-values__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about-values__def {
  font-family: var(--font-body);
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.about-values__intro {
  font-family: var(--font-body);
  color: var(--muted);
  max-width: 36rem;
  margin: 2.5rem auto 2.5rem;
}

.about-values__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.value-tag {
  padding: 0.75rem 1.5rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--foreground);
}

/* Directors */
.about-directors {
  background: var(--charcoal);
}

.about-directors__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.about-directors__header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-directors__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.about-directors__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.directors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .directors__grid { grid-template-columns: repeat(3, 1fr); }
}

.director-card {
  background: var(--charcoal-light);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.07);
}

.director-card__avatar {
  width: 4rem;
  height: 4rem;
  background: rgba(255,200,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.director-card__initials {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.director-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.director-card__role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.director-card__bio {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(250,245,235,0.6);
  line-height: 1.7;
}

/* ============================================================
   PROJECT SECTIONS
   ============================================================ */
.project-section {
  background: var(--cream);
}
.project-section--dark { background: var(--charcoal); }

.project-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .project-section__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .project-section__inner--reverse { direction: rtl; }
  .project-section__inner--reverse > * { direction: ltr; }
}

.project-section__img-wrap {
  position: relative;
  overflow: hidden;
}

.project-section__img-wrap img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
}
@media (min-width: 1024px) { .project-section__img-wrap img { height: 31.25rem; } }

.project-section__img-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 4px;
  background: var(--gold);
}

.project-section__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 1rem;
}
.project-section--dark .project-section__label { color: var(--gold); }

.project-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.project-section--dark .project-section__title { color: var(--cream); }

.project-section__desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
}
.project-section--dark .project-section__desc { color: rgba(250,245,235,0.7); }

/* ============================================================
   FEATURED WORK
   ============================================================ */
.featured-work {
  background: var(--background);
}

.featured-work__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.featured-work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .featured-work__grid { grid-template-columns: 1fr 1fr; }
}

.featured-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.featured-card img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  transition: transform 0.7s;
}
.featured-card:hover img { transform: scale(1.05); }

.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.5s;
  display: flex;
  align-items: flex-end;
}
.featured-card:hover .featured-card__overlay { background: rgba(30,30,30,0.52); }

.featured-card__info {
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s;
}
.featured-card:hover .featured-card__info { transform: translateY(0); }

.featured-card__category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.featured-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(255,200,0,0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.contact-section__inner {
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-section__inner { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

.contact-section__cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.contact-section__cta-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: rgba(250,245,235,0.6);
  line-height: 1.8;
}

/* CF7 form overrides */
.wpcf7-form .form-group { margin-bottom: 1.25rem; }

.wpcf7-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250,245,235,0.5);
  margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  background: var(--charcoal-light);
  border: 1px solid rgba(250,245,235,0.1);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--gold);
}

.wpcf7-form textarea { resize: none; height: 8rem; }

.wpcf7-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: var(--gold);
  color: var(--foreground);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 0.5rem;
}
.wpcf7-form input[type="submit"]:hover { background: var(--gold-dark); }

.wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gold);
  border: none !important;
  padding: 0.75rem 0 0 !important;
  margin: 0 !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--foreground);
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .site-footer { padding: 3rem 3rem; } }

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
}

.footer__logo img {
  height: 3.5rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(250,245,235,0.4);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250,245,235,0.4);
  transition: color 0.3s;
}
.footer__links a:hover { color: rgba(250,245,235,0.8); }

.footer__bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,245,235,0.1);
  text-align: center;
}

.footer__credit {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: rgba(250,245,235,0.25);
  letter-spacing: 0.07em;
  transition: color 0.3s;
}
.footer__credit:hover { color: rgba(250,245,235,0.5); }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
  .about-story__quote-box { padding: 2rem 1.5rem; }
  .featured-card img { height: 22rem; }
}

/* WordPress admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ── Scroll offset fix ──────────────────────────────────────
   Prevents fixed navbar from covering section headings
   when anchor links are clicked.
   ---------------------------------------------------------- */
section[id] { scroll-margin-top: 5.5rem; }
.admin-bar section[id] { scroll-margin-top: 7.5rem; }
@media (max-width: 782px) {
  .admin-bar section[id] { scroll-margin-top: 9rem; }
}

/* ============================================================
   INNER PAGES (page.php)
   ============================================================ */

/* Push content below fixed navbar */
.page-hero {
  padding-top: 5rem; /* navbar height */
  background: var(--charcoal);
}
.admin-bar .page-hero { padding-top: 7.5rem; }
@media (max-width: 782px) {
  .admin-bar .page-hero { padding-top: 9rem; }
}

.page-hero__inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
}

/* Page body content */
.page-content__inner {
  max-width: 860px;
  margin: 0 auto;
}

.page-content__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--foreground);
  margin: 2.5rem 0 1rem;
}

.page-content__inner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--foreground);
  margin: 2rem 0 0.75rem;
}

.page-content__inner p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.page-content__inner ul,
.page-content__inner ol {
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content__inner li { margin-bottom: 0.5rem; }

.page-content__inner strong { color: var(--foreground); font-weight: 600; }

.page-content__inner a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content__inner a:hover { color: var(--gold); }

.page-content__inner img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
}

.page-content__inner hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}

/* Gold accent divider — use <hr class="gold"> in page content */
.page-content__inner hr.gold {
  border-top: 2px solid var(--gold);
  width: 4rem;
  margin: 2rem 0;
}

/* CTA button inside page content — use a link with class "page-cta" */
.page-content__inner .page-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--foreground) !important;
  text-decoration: none;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
  transition: background 0.3s;
}
.page-content__inner .page-cta:hover { background: var(--gold-dark); }

/* ── WP Menu integration ────────────────────────────────────── */

/* Active page highlight in nav */
.navbar__links .nav-active {
  color: var(--foreground) !important;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* Mobile menu when rendered via wp_nav_menu */
.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu__list li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  transition: color 0.3s;
}
.mobile-menu__list li a:hover,
.mobile-menu__list li a.nav-active { color: var(--foreground); }

/* Navbar desktop wrapper */
.navbar__desktop {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 768px) { .navbar__desktop { display: flex; } }

/* Remove old navbar__links display rule conflict */
.navbar__links { display: flex; }

/* ── Logo fix — WP wraps custom logo in <figure>, breaks flex ── */
.navbar__logo figure,
.navbar__logo .custom-logo-link,
.navbar__logo img,
.navbar__logo .custom-logo {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: 200px;
}
.navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ── Dropdown submenu ── */
.navbar__links li {
  position: relative;
}

.navbar__links li ul {
  display: none;
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  background: #fff;
  border-top: 2px solid var(--gold);
  border-bottom: none;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 0.5rem 0;
}

.navbar__links li:hover > ul,
.navbar__links li:focus-within > ul {
  display: block;
}

.navbar__links li ul li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s, color 0.2s;
}
.navbar__links li ul li:last-child a { border-bottom: none; }
.navbar__links li ul li a:hover {
  background: var(--secondary-bg);
  color: var(--foreground);
}

/* Parent item with children gets a subtle arrow */
.navbar__links li:has(> ul) > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.5;
  margin-left: 2px;
}

/* Mobile submenu — show indented */
.mobile-menu__list li ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu__list li ul li a {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ============================================================
   BLOG — archive.php & single.php
   ============================================================ */

.blog-listing__inner { max-width: 1280px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card__img-wrap { display: block; overflow: hidden; }
.blog-card__img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.6s;
  display: block;
}
.blog-card:hover .blog-card__img { transform: scale(1.04); }

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-card__date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
}

.blog-card__cat {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: rgba(255,200,0,0.1);
  padding: 0.2rem 0.6rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.blog-card__title a { color: inherit; transition: color 0.3s; }
.blog-card__title a:hover { color: var(--gold-dark); }

.blog-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card__link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  transition: color 0.3s;
}
.blog-card__link:hover { color: var(--foreground); }

/* Pagination */
.blog-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links { display: flex; gap: 0.5rem; }
.blog-pagination .page-numbers {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  color: var(--muted);
  transition: all 0.3s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--foreground);
}

.blog-empty {
  font-family: var(--font-body);
  color: var(--muted);
  text-align: center;
  padding: 4rem 0;
}

/* Single post */
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-featured-img { margin-bottom: 3rem; }
.post-featured-img__img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
}

.post-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-nav__back {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.3s;
}
.post-nav__back:hover { color: var(--foreground); }
.post-nav__links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted);
}
.post-nav__links a { color: var(--muted); transition: color 0.3s; }
.post-nav__links a:hover { color: var(--foreground); }

/* post-content wrapper */
.post-content__inner { max-width: 1280px; margin: 0 auto; }

/* ── Logo size fix ─────────────────────────────────────────
   WP outputs logo at full uploaded size (312x104).
   Constrain it here without breaking the flex layout.
   --------------------------------------------------------- */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo a,
.navbar__logo .custom-logo-link {
  display: flex;
  align-items: center;
}
.navbar__logo img,
.navbar__logo .custom-logo {
  height: 3.25rem !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

/* Footer logo */
.footer__logo a,
.footer__logo .custom-logo-link { display: inline-flex; align-items: center; }
.footer__logo img,
.footer__logo .custom-logo {
  height: 2.75rem !important;
  width: auto !important;
  filter: brightness(0) invert(1);
}

/* ── Fix Gutenberg leftover margins on inner pages ──────── */
.page-content__inner .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}
.page-content__inner .wp-block-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
}
.page-content__inner .wp-block-image {
  margin: 2rem 0;
}
.page-content__inner .wp-block-image img {
  max-width: 100%;
  height: auto;
}
.page-content__inner figure.alignleft {
  float: left;
  margin: 0 2rem 1rem 0;
}
.page-content__inner figure.alignright {
  float: right;
  margin: 0 0 1rem 2rem;
}
@media (max-width: 640px) {
  .page-content__inner figure.alignleft,
  .page-content__inner figure.alignright {
    float: none;
    margin: 1.5rem 0;
  }
}
