/* =========================================
   THEME VARIABLES
========================================= */

:root {
  --color-navy:   #0D1B2A;
  --color-slate:  #1F3142;
  --color-orange: #FF8A2B;
  --color-gray:  #3d444a;

  --color-bg:      #F8F5F0;
  --color-surface: #FFFFFF;
  --color-surface-soft: #FDFBF7;
  --color-border:  rgba(13, 27, 42, 0.12);
  --color-text:    #0D1B2A;
  --color-muted:   rgba(13, 27, 42, 0.75);

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans:  "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Dark mode overrides */
[data-theme="dark"] {
  --color-bg:      #050910;
  --color-surface: #0D1B2A;
  --color-surface-soft: #06101F;
  --color-border:  rgba(255, 255, 255, 0.1);
  --color-text:    #F5F5F5;
  --color-muted:   rgba(240, 240, 240, 0.8);
}

/* =========================================
   GLOBAL RESET
========================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

/* =========================================
   LAYOUT
========================================= */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   HEADER / NAV
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: inline-block;
}

/* Default = light mode shows light logo, hide dark logo */
.nav-logo img[data-theme="dark"] {
  display: none;
}

/* Dark theme = show dark logo, hide light logo */
html[data-theme="dark"] .nav-logo img[data-theme="light"] {
  display: none;
}

html[data-theme="dark"] .nav-logo img[data-theme="dark"] {
  display: inline-block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.90rem 1.03rem;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Dark mode toggle */

/* === THEME TOGGLE BUTTON === */

/* THEME TOGGLE BUTTON (container) */
.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 0.46rem 1.23rem;
  background: var(--color-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* Base icon styling */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  font-size: 1rem;
}

/* Light mode: show navy sun, hide moon */
.theme-toggle .icon-moon {
  display: inline-block;
  color: #0D1B2A; /* your brand navy */
}

.theme-toggle .icon-sun {
  display: none;
  color: #ffffff;
}

html[data-theme="dark"] .theme-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Dark mode: show white moon, hide sun */
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}


/* Mobile nav open state */

.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0 0.7rem;
  font-size: 0.9rem;
}

.nav-links-mobile a {
  text-decoration: none;
  padding: 0.3rem 0;
}

body.nav-open .nav-links-mobile {
  display: flex;
}

/* =========================================
   HERO (HOME)
========================================= */

.hero {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 43, 0.16), transparent 55%),
    radial-gradient(circle at bottom left, rgba(13, 27, 42, 0.12), transparent 55%),
    var(--color-bg);
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 40rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .pill {
  background: rgba(5, 9, 16, 0.8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero right panel */

.hero-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-panel-image {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.hero-panel-body {
  padding: 1.7rem 1.6rem 1.8rem;
}

.hero-panel-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.hero-panel-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
}

.hero-panel-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 0.9rem;
}

.hero-panel-list {
  font-size: 0.85rem;
  padding-left: 1.1rem;
  margin: 0;
}

/* =========================================
   PAGE HERO (INTERIOR PAGES, BACKGROUND IMAGE)
========================================= */

.page-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  background-color: var(--color-gray); /* fallback when no imageSrc */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-inner {
  padding: 40px 0;
}

.page-hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin: 0.4rem 0 0.6rem;
}

.page-hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  opacity: 0.96;
}

/* Breadcrumbs inside hero (simple string) */

.breadcrumbs {
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.08s ease,
    border-color 0.08s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-navy);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: rgba(13, 27, 42, 0.04);
}

/* =========================================
   SECTIONS & CARDS
========================================= */

.section {
  padding: 3rem 0;
}

.section-band {
  background: var(--color-surface-soft);
}

[data-theme="dark"] .section-band {
  background: var(--color-surface-soft);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}

.card-body.small {
  font-size: 0.82rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0.3rem 0 0.6rem;
  font-size: 0.85rem;
}

/* =========================================
   ABOUT GRID
========================================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: start;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image-inner {
  height: 320px;
  background-size: cover;
  background-position: center;
}

/* =========================================
   BLOG: LIST + HOMEPAGE CARDS
========================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.blog-card-image {
  height: 180px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0.7rem 0 0.4rem;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

/* =========================================
   SINGLE BLOG POST LAYOUT
========================================= */

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(0, 1.7fr);
  gap: 2rem;
}

.post-body {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* hero image inside a post (if you ever use it) */
.blog-post-hero-image {
  height: 220px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.post-body h2 {
  font-family: var(--font-serif);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

.post-sidebar {
  font-size: 0.85rem;
}

.link-inline {
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 27, 42, 0.3);
  padding-bottom: 1px;
}

.link-inline:hover {
  border-bottom-color: var(--color-orange);
}

/* Sidebar widgets */
.post-sidebar .card {
  margin-bottom: 1rem;
}

/* Tag list (topics widget) */

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  margin-bottom: 0.3rem;
}

.tag-list li:last-child {
  margin-bottom: 0;
}

.tag-count {
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* =========================================
   BREADCRUMBS (INTERIOR CONTENT SECTIONS)
========================================= */

.breadcrumbs-inner {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumbs-inner a {
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 27, 42, 0.2);
  padding-bottom: 1px;
}

/* =========================================
   CONTACT FORM
========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: start;
}

.field-group {
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 0.7rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: #FCFBF8;
  color: var(--color-text);
}

[data-theme="dark"] .field-input,
[data-theme="dark"] .field-textarea {
  background: #07101F;
}

.field-textarea {
  resize: vertical;
  min-height: 140px;
}

/* =========================================
   CTA CARD
========================================= */

.cta-card {
  text-align: center;
}

.cta-card .section-heading {
  margin-bottom: 0.5rem;
}

.cta-card .section-subtitle {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  margin-inline: auto;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.7rem 0 2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .post-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
