/* =====================================================================
   BAKTIR HUKUK — Site stylesheet
   Palette (unchanged): navy #1a1a2e · gold #c9a961 · gold-dark #b8964d
   ===================================================================== */

/* ------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------ */
:root {
  --navy: #1a1a2e;
  --navy-soft: #232340;
  --navy-light: #3a3a5e;
  --gold: #c9a961;
  --gold-dark: #b8964d;
  --gold-10: rgba(201, 169, 97, 0.10);
  --gold-20: rgba(201, 169, 97, 0.20);
  --gold-40: rgba(201, 169, 97, 0.40);
  --text: #333;
  --text-2: #555;
  --muted: #666;
  --muted-2: #888;
  --bg: #f8f8f8;
  --bg-2: #fafafa;
  --border: #e0e0e0;
  --white: #fff;

  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  --radius: 4px;
  --shadow-sm: 0 2px 12px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 12px 40px rgba(26, 26, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.18);
  --header-h: 84px;

  /* legacy aliases kept for any template still using them */
  --primary-navy: var(--navy);
  --primary-gold: var(--gold);
  --text-dark: var(--text);
  --text-gray: var(--muted);
  --bg-light: var(--bg);
  --border-color: var(--border);
}

/* ------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ------------------------------------------------------------------
   3. Layout utilities
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: 860px; }

.main-content { min-height: 60vh; }

section { padding: 100px 0; }

.section--soft { background: var(--bg); }
.section--tight { padding: 70px 0; }

/* Section heading pattern */
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.section-head--center .eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold-dark); }

.section-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 640px;
}
.section-head--center .section-subtitle { margin: 0 auto; }

.section-head--light .section-title { color: var(--white); }
.section-head--light .section-subtitle { color: rgba(255, 255, 255, 0.78); }

/* ------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26, 26, 46, 0.18); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0); }

.btn .btn-arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { --btn-bg: var(--gold); --btn-fg: var(--navy); }
.btn-primary:hover { border-color: var(--navy); }

.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-secondary::before { background: var(--white); }
.btn-secondary:hover { color: var(--navy); border-color: var(--white); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn-outline::before { background: var(--navy); }
.btn-outline:hover { color: var(--white); }

.btn-gold-outline {
  --btn-bg: transparent;
  --btn-fg: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline::before { background: var(--gold); }
.btn-gold-outline:hover { color: var(--navy); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.7rem 1.4rem; font-size: 0.78rem; }

/* Text link with growing underline */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.link-more::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.link-more:hover::after { transform: scaleX(1); transform-origin: left; }
.link-more svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.link-more:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------
   5. Header & navigation
   ------------------------------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1200;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 169, 97, 0.18);
  transition: box-shadow 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(26, 26, 46, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.4s var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gold);
}
.brand__mark {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand:hover .brand__mark { background: var(--gold); color: var(--navy); transform: rotate(-4deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.brand__tag {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__cta { display: none; }

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.header-cta { display: inline-flex; white-space: nowrap; }

/* Hamburger */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 2px;
  z-index: 1101;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, top 0.4s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-toggle.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------
   6. Hero (home)
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 880px);
  display: flex;
  align-items: center;
  padding: 120px 0 140px;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  animation: kenburns 28s var(--ease-in-out) infinite alternate;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.55) 0%, rgba(26, 26, 46, 0.72) 60%, rgba(26, 26, 46, 0.92) 100%);
  z-index: -1;
}
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__lines span {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.28), transparent);
  transform: scaleY(0);
  transform-origin: top;
  animation: lineGrow 1.6s var(--ease-out) forwards;
}
.hero__lines span:nth-child(1) { left: 12%; animation-delay: 0.2s; }
.hero__lines span:nth-child(2) { left: 50%; animation-delay: 0.5s; }
.hero__lines span:nth-child(3) { left: 88%; animation-delay: 0.8s; }

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: 0.005em;
  margin-bottom: 1.6rem;
}
.hero__title i, .hero__title em {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px) rotate(1deg);
  animation: wordIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.45s + var(--i, 0) * 0.06s);
}
.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.1s forwards;
}
.hero__subtitle:empty { display: none; }
.hero__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.3s forwards;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}
.hero__scroll span {
  width: 1px; height: 46px;
  background: rgba(201, 169, 97, 0.5);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--gold);
  animation: scrollDrop 1.8s var(--ease-in-out) infinite;
}

/* ------------------------------------------------------------------
   7. Trust strip
   ------------------------------------------------------------------ */
.trust {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding: 0 0 90px;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}
.trust__item {
  padding: 2.4rem 1.6rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.4s var(--ease-out);
}
.trust__item:last-child { border-right: 0; }
.trust__item:hover { background: var(--bg-2); }
.trust__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-40);
  border-radius: 50%;
  color: var(--gold-dark);
  transition: transform 0.5s var(--ease-out), background 0.4s, color 0.4s, border-color 0.4s;
}
.trust__icon svg { width: 26px; height: 26px; }
.trust__item:hover .trust__icon { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-4px) rotate(-6deg); }
.trust__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ------------------------------------------------------------------
   8. Services (home + services page)
   ------------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.service-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.6rem 2.2rem 2.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.service-card::before {
  /* gold top line grows on hover */
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-card::after {
  /* cursor spotlight */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--gold-10), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-card__index {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-20);
  line-height: 1;
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.service-card:hover .service-card__index { color: var(--gold-40); transform: translateY(-3px); }

.service-card__icon {
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: var(--gold-10);
  border: 1px solid var(--gold-20);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  transition: transform 0.5s var(--ease-out), background 0.4s;
}
.service-card:hover .service-card__icon { background: var(--gold-20); transform: scale(1.06) rotate(-4deg); }

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}
.service-card p {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.service-card .link-more { position: relative; z-index: 1; margin-top: auto; }

/* ------------------------------------------------------------------
   9. Blog cards
   ------------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-grid--home { max-width: 1060px; margin: 0 auto; }

.blog-card {
  width: 100%;
  max-width: 400px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.blog-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
}
.blog-card:hover .blog-card__image img { transform: scale(1.08); }
.blog-card__image--placeholder {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
}
.blog-card__image--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(201, 169, 97, 0.07) 0 1px,
    transparent 1px 11px
  );
}
.blog-card__image--placeholder svg { width: 34px; height: 34px; opacity: 0.55; }
.blog-card__date {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.4rem 1.5rem 1.4rem;
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-bottom: 0.8rem;
}
.blog-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.blog-card__meta svg { width: 14px; height: 14px; color: var(--gold-dark); }
.blog-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}
.blog-card h3 a { text-decoration: none; color: inherit; transition: color 0.3s; }
.blog-card h3 a:hover { color: var(--gold-dark); }
.blog-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .link-more { margin-top: auto; align-self: flex-start; }

/* Article index: horizontal rows scan far faster than a wall of large cards,
   and they degrade gracefully when a post has no featured image. */
.post-list { display: flex; flex-direction: column; gap: 1.1rem; }

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.4s;
}
.post-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
  z-index: 2;
}
.post-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-row:hover::before { transform: scaleY(1); }

/* Posts without a featured image drop the thumbnail entirely rather than
   showing an empty block, and keep a permanent gold rail instead. */
.post-row--plain { grid-template-columns: 1fr; }
.post-row--plain::before { transform: scaleY(1); opacity: 0.45; }
.post-row--plain:hover::before { opacity: 1; }
.post-row--plain .post-row__body { padding-left: 1.9rem; }

.post-row__media {
  position: relative;
  height: 100%;
  min-height: 168px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.post-row:hover .post-row__media img { transform: scale(1.06); }
.post-row__media svg { width: 30px; height: 30px; opacity: 0.5; }

.post-row__body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.7rem;
  min-width: 0;
}
.post-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.post-row__meta svg { width: 13px; height: 13px; color: var(--gold-dark); }
.post-row__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.post-row__cat {
  padding: 0.22rem 0.6rem;
  background: var(--gold-10);
  border: 1px solid var(--gold-20);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.post-row h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.post-row h3 a { text-decoration: none; color: inherit; transition: color 0.3s; }
.post-row h3 a:hover { color: var(--gold-dark); }
.post-row p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row .link-more { margin-top: auto; align-self: flex-start; font-size: 0.85rem; }

@media (max-width: 680px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row__media { height: auto; min-height: 0; aspect-ratio: 16 / 7; }
  .post-row__body { padding: 1.2rem 1.3rem; }
}

.section-foot { text-align: center; margin-top: 3rem; }

/* ------------------------------------------------------------------
   10. CTA band
   ------------------------------------------------------------------ */
.cta {
  position: relative;
  padding: 110px 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  border-top: 4px solid var(--gold);
  overflow: hidden;
  isolation: isolate;
}
.cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 169, 97, 0.16) 0%, transparent 60%);
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}
.cta__ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 560px; height: 560px;
  border: 1px solid rgba(201, 169, 97, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.cta__ring--2 { width: 820px; height: 820px; border-style: dashed; animation: spin 90s linear infinite; }
.cta .eyebrow { justify-content: center; }
.cta h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1.2rem;
}
.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
}
.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
.cta__phone svg { width: 20px; height: 20px; }
.cta__phone:hover { color: var(--white); }

/* ------------------------------------------------------------------
   11. Page header (sub pages) + breadcrumb
   ------------------------------------------------------------------ */
.page-header {
  position: relative;
  padding: 96px 0 80px;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  z-index: -1;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -160px; top: -160px;
  width: 520px; height: 520px;
  border: 1px solid rgba(201, 169, 97, 0.14);
  border-radius: 50%;
  z-index: -1;
  animation: spinPlain 80s linear infinite;
}
.page-header .container { text-align: center; }
.page-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  color: var(--white);
  margin-bottom: 0.8rem;
}
.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.5; }

/* ------------------------------------------------------------------
   12. About page
   ------------------------------------------------------------------ */
.about-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-intro__text p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.85;
}
.about-intro__visual { position: relative; }
.about-intro__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-intro__frame::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 169, 97, 0.45);
  border-radius: 2px;
}
.about-intro__frame svg { width: 140px; height: 140px; color: var(--gold); opacity: 0.9; }
.about-intro__quote {
  position: absolute;
  left: -2rem; bottom: 2.5rem;
  max-width: 300px;
  padding: 1.6rem 1.8rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--navy);
}
.about-intro__quote small {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.mv-card {
  position: relative;
  padding: 3rem 2.6rem;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mv-card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-10);
  color: var(--gold-dark);
  margin-bottom: 1.4rem;
}
.mv-card__icon svg { width: 24px; height: 24px; }
.mv-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.mv-card p { color: var(--text-2); line-height: 1.85; }
.mv-card strong { color: var(--navy); font-weight: 600; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.team-card {
  width: 100%;
  max-width: 380px;
  justify-self: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-photo svg { width: 80px; height: 80px; opacity: 0.85; }
.team-photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.team-card:hover .team-photo::after { transform: scaleX(1); }
.team-info { padding: 1.8rem 1.8rem 2rem; }
.team-info h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.team-position {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.team-info p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.team-info .link-more { margin-top: 1.2rem; background: none; border: 0; }

/* Team modal */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(26, 26, 46, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.team-modal.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.5s var(--ease-out);
}
.team-modal.active .modal-content { transform: none; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy);
  transition: background 0.3s, transform 0.3s;
  z-index: 1;
}
.modal-close:hover { background: var(--gold); transform: rotate(90deg); }
.modal-header {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  padding: 2.4rem 2.4rem 1.6rem;
  background: var(--bg);
}
.modal-photo {
  flex: 0 0 120px;
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: var(--gold);
  border: 3px solid var(--gold);
}
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-photo svg { width: 48px; height: 48px; }
.modal-header-info h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.modal-header-info .position {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.modal-body { padding: 2rem 2.4rem 2.6rem; }
.modal-body h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { color: var(--text-2); line-height: 1.85; margin-bottom: 0.8rem; }
.modal-specializations { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.spec-tag {
  padding: 0.4rem 0.9rem;
  background: var(--gold-10);
  border: 1px solid var(--gold-20);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--navy);
}

/* ------------------------------------------------------------------
   13. Service detail
   ------------------------------------------------------------------ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.service-detail__body h2 { font-size: 2rem; margin-bottom: 1.4rem; }
.service-detail__body h2 .service-detail__emoji { margin-right: 0.5rem; }
.service-description {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.9;
}
.service-description p { margin-bottom: 1.2rem; }
.service-description ul { margin: 0 0 1.4rem 1.2rem; list-style: none; }
.service-description li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; }
.service-description li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.service-aside { position: sticky; top: 100px; }
.aside-card {
  padding: 2rem;
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.aside-card h3 { color: var(--gold); font-size: 1.25rem; margin-bottom: 0.8rem; }
.aside-card p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.4rem; }
.aside-card--light { background: var(--bg); color: var(--text); }
.aside-card--light h3 { color: var(--navy); }
.aside-card--light p { color: var(--text-2); margin-bottom: 0; }
.aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-2);
}
.aside-list li:last-child { border-bottom: 0; }
.aside-list svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold-dark); margin-top: 3px; }

/* ------------------------------------------------------------------
   14. Contact
   ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-form-wrapper h2, .contact-info-wrapper h2 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.contact-lead { color: var(--muted); margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-20);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.form-error { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: #b42318; }
.form-error ul { list-style: none; }

.info-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.info-card__icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-10);
  color: var(--gold-dark);
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.info-card p { color: var(--navy); font-size: 1rem; line-height: 1.6; }
.info-card a { color: inherit; text-decoration: none; }
.info-card a:hover { color: var(--gold-dark); }

.emergency-card {
  position: relative;
  margin-top: 1.6rem;
  padding: 1.8rem 1.8rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}
.emergency-card::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-20), transparent 65%);
}
.emergency-card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 0.4rem; }
.emergency-card p { color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; margin-bottom: 0.7rem; }
.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
.emergency-phone:hover { color: var(--gold); }
.emergency-phone .pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-40);
  animation: ping 1.8s ease-out infinite;
}

.alert {
  padding: 1rem 1.3rem;
  margin-bottom: 1.6rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: 0.95rem;
}
.alert-success { background: #eef7f0; border-color: #2e7d4f; color: #1e5a38; }
.alert-error, .alert-danger { background: #fdf0ef; border-color: #b42318; color: #7a1a12; }

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}
.map-frame iframe { width: 100%; height: 440px; border: 0; filter: grayscale(0.25); transition: filter 0.5s; }
.map-frame:hover iframe { filter: none; }

/* ------------------------------------------------------------------
   15. Blog list
   ------------------------------------------------------------------ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
}
.search-box { margin-bottom: 1.8rem; }
.search-box form {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-20); }
.search-box input { flex: 1; padding: 0.9rem 1.2rem; border: 0; font: inherit; font-size: 1rem; background: transparent; }
.search-box input:focus { outline: none; }
.search-box button {
  padding: 0 1.6rem;
  background: var(--navy);
  color: var(--gold);
  border: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.search-box button:hover { background: var(--gold); color: var(--navy); }

.filter-tags { margin-bottom: 2.4rem; }
.filter-tags h3 { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.tag:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.tag.active { background: var(--navy); border-color: var(--navy); color: var(--gold); }

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a, .pagination .current {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pagination a:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.pagination .current { background: var(--gold); border-color: var(--gold); }

.sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  padding: 1.8rem;
  margin-bottom: 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}
.sidebar-widget h3 { font-size: 1.15rem; margin-bottom: 1.2rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); }
.sidebar-widget p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.sidebar-widget--dark { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); }
.sidebar-widget--dark h3 { color: var(--gold); border-bottom-color: rgba(255, 255, 255, 0.12); }
.sidebar-widget--dark p { color: rgba(255, 255, 255, 0.78); }

.featured-post {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.featured-post:last-child { border-bottom: 0; padding-bottom: 0; }
.featured-post-image {
  flex: 0 0 72px;
  width: 72px; height: 72px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  display: grid;
  place-items: center;
  color: var(--gold);
}
.featured-post-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-image svg { width: 26px; height: 26px; opacity: 0.8; }
.featured-post h4 { font-size: 0.98rem; line-height: 1.4; margin-bottom: 0.25rem; }
.featured-post h4 a { text-decoration: none; color: var(--navy); transition: color 0.3s; }
.featured-post h4 a:hover { color: var(--gold-dark); }
.featured-post-date { font-size: 0.78rem; color: var(--muted-2); }

/* ------------------------------------------------------------------
   16. Blog detail
   ------------------------------------------------------------------ */
.article-hero { padding: 90px 0 70px; }
.article-hero .container { max-width: 900px; }
.article-category {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.4rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.article-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.25; margin-bottom: 1.4rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta svg { width: 15px; height: 15px; color: var(--gold); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}
.article-image {
  margin: -140px 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.article-image img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content { font-size: 1.08rem; line-height: 1.9; color: var(--text-2); }
.article-content p { margin-bottom: 1.4rem; }
.article-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.6em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.15em 0 0;
  color: var(--gold-dark);
}
.article-content h2, .article-content h3 { margin: 2.2rem 0 1rem; }
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content ul, .article-content ol { margin: 0 0 1.4rem 1.4rem; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  border-left: 3px solid var(--gold);
  background: var(--bg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
}
.article-content a { color: var(--gold-dark); }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.article-tags { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-tags h3 { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }

.author-box {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.author-photo {
  flex: 0 0 90px;
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: var(--gold);
  border: 3px solid var(--gold);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo svg { width: 36px; height: 36px; }
.author-info h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.author-title { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.7rem; }
.author-info p { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }

.share-buttons { display: grid; gap: 0.6rem; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.share-btn svg { width: 18px; height: 18px; color: var(--gold-dark); transition: color 0.3s; }
.share-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateX(4px); }
.share-btn:hover svg { color: var(--gold); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ------------------------------------------------------------------
   17. Legal pages
   ------------------------------------------------------------------ */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  line-height: 1.85;
  color: var(--text-2);
}
.legal-content .last-updated {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin-bottom: 2rem;
  background: var(--gold-10);
  border: 1px solid var(--gold-20);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--navy);
}
.legal-content h2 { font-size: 1.6rem; margin: 2rem 0 0.8rem; }
.legal-content h3 { font-size: 1.25rem; margin: 1.6rem 0 0.6rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1rem 1.4rem; list-style: disc; }

/* ------------------------------------------------------------------
   17b. Error pages
   ------------------------------------------------------------------ */
.error-page {
  display: grid;
  place-items: center;
  min-height: 66vh;
  padding: 90px 0;
  background: var(--bg);
}
.error-box {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-20);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  user-select: none;
}
.error-box .eyebrow { justify-content: center; }
.error-box .section-subtitle { margin: 0 auto 2.2rem; }
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  border-top: 4px solid var(--gold);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: -200px; bottom: -260px;
  width: 620px; height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.1);
  pointer-events: none;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 72px 0 56px;
}
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.75; max-width: 320px; }
.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.3rem;
  padding-bottom: 0.7rem;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 1px;
  background: var(--gold);
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding-left: 0;
  transition: color 0.3s, padding-left 0.35s var(--ease-out);
}
.footer-links a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}
.footer-links a:hover { color: var(--gold); padding-left: 18px; }
.footer-links a:hover::before { width: 12px; }

.footer-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-contact svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }
.footer-contact a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: var(--gold); }

.social-links { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.social-links a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-out);
}
.social-links svg { width: 16px; height: 16px; }
.social-links a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal a { position: relative; }
.footer-legal a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.65rem; top: 50%;
  width: 1px; height: 11px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ------------------------------------------------------------------
   19. Floating actions
   ------------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
  z-index: 900;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 5.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  z-index: 900;
}
.whatsapp-fab svg { width: 22px; height: 22px; }
.whatsapp-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(201, 169, 97, 0.5); }

/* ------------------------------------------------------------------
   20. Reveal-on-scroll & keyframes
   ------------------------------------------------------------------ */
/* Scoped to .js (set by an inline script in <head>): without JavaScript these
   elements must stay visible rather than being hidden forever. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, 1%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wordIn {
  to { opacity: 1; transform: none; }
}
@keyframes lineGrow { to { transform: scaleY(1); } }
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinPlain { to { transform: rotate(360deg); } }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 var(--gold-40); }
  100% { box-shadow: 0 0 0 14px rgba(201, 169, 97, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .hero__title .word, .hero__eyebrow, .hero__subtitle, .hero__buttons, .hero__scroll { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   21. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .service-detail, .blog-layout, .article-layout { grid-template-columns: 1fr; }
  .service-aside, .sidebar { position: static; }
  .about-intro { grid-template-columns: 1fr; gap: 3rem; }
  .about-intro__visual { max-width: 460px; }
  .about-intro__quote { left: 1rem; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  /* The mobile menu is a position:fixed child of the header. backdrop-filter
     makes its element a containing block for fixed descendants, so once the
     header gained .is-scrolled the open menu was clipped to the header strip
     instead of covering the viewport. Keep the header opaque here instead. */
  .site-header.is-scrolled {
    background: var(--navy);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 6rem 2rem 3rem;
    /* Fully opaque: at 0.98 the page behind still bled through the menu. */
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  }
  .nav.active { opacity: 1; visibility: visible; }
  .nav-link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    padding: 0.7rem 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
  }
  .nav.active .nav-link { opacity: 1; transform: none; }
  .nav.active .nav-link:nth-child(1) { transition-delay: 0.10s; }
  .nav.active .nav-link:nth-child(2) { transition-delay: 0.16s; }
  .nav.active .nav-link:nth-child(3) { transition-delay: 0.22s; }
  .nav.active .nav-link:nth-child(4) { transition-delay: 0.28s; }
  .nav.active .nav-link:nth-child(5) { transition-delay: 0.34s; }
  .nav-link::after { height: 2px; bottom: 4px; }
  .nav__cta { display: inline-flex; margin-top: 1.6rem; opacity: 0; transition: opacity 0.5s var(--ease-out) 0.42s; }
  .nav.active .nav__cta { opacity: 1; }
  body.menu-open { overflow: hidden; }

  /* Keep the logo above the open menu so it stays visible and tappable. */
  .brand { position: relative; z-index: 1101; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.25rem; }

  section { padding: 70px 0; }
  .hero { min-height: 80vh; padding: 100px 0 120px; }
  .hero__lines { display: none; }

  .trust { margin-top: -48px; padding-bottom: 60px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.8rem 1rem; }
  .trust__item:nth-child(odd) { border-right: 1px solid var(--border); }
  .trust__item:nth-last-child(-n+2) { border-bottom: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 2.4rem; padding: 56px 0 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .page-header { padding: 64px 0 56px; }
  .article-hero { padding: 64px 0 50px; }
  .article-image { margin-top: -90px; }
  .author-box, .modal-header { flex-direction: column; text-align: center; }
  .modal-header { padding: 2rem 1.5rem 1.2rem; }
  .modal-body { padding: 1.5rem; }
  .cta { padding: 80px 0; }
  .cta__ring, .cta__ring--2 { display: none; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 0.8rem; bottom: 5.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .btn { width: 100%; }
  .hero__buttons .btn { width: auto; min-width: 200px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust__item:last-child { border-bottom: 0; }
  .about-intro__quote { position: static; margin-top: 1rem; max-width: none; }
  .legal-content { padding: 1.8rem 1.3rem; }
}
