/* Shared site styles — generated from the page templates by extract_css.py; page-specific rules stay inline in each page. */
/* ─── RESET & BASE ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0c0c0c;
  color: #f0ece4;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* ─── VARIABLES ───────────────────────────── */
:root {
  --gold:       #C9A84C;
  --gold-light: #E8C97D;
  --gold-dark:  #9B7A2B;
  --black:      #0c0c0c;
  --surface:    #141414;
  --surface2:   #1c1c1c;
  --border:     #2a2a2a;
  --text:       #f0ece4;
  --muted:      #888880;
  --white:      #ffffff;
}
/* ─── TYPOGRAPHY ──────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 20px;
}
.section-body {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}
/* ─── LAYOUT ──────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 100px 0; }
@media(max-width:768px){ section{padding:70px 0;} .container{padding:0 24px;} }
/* ─── GOLD LINE ───────────────────────────── */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}
/* ─── NAV ──────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(12,12,12,.97);
  backdrop-filter: blur(12px);
  padding: 16px 40px;
  border-color: var(--border);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}
.nav-logo .logo-sub {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 3px;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo-img:hover {
  opacity: 0.8;
}
@media(max-width:900px) {
  .nav-logo-img {
    height: 32px;
  }
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  color: #aaa;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
/* Dropdown menu */
.nav-item {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 20px;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 2000;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
}
.nav-dropdown a:hover {
  background: var(--surface2);
  color: var(--text);
  padding-left: 28px;
}
.nav-cta {
  background: var(--gold);
  color: #000 !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--text); transition: all .3s; }
@media(max-width:900px){
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  
  /* Mobile menu overlay - fixed, centered stack */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 10001;
    padding: 100px 40px 80px;
    overflow-y: auto;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  /* Lock body scroll */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  
  /* Vertically stacked menu items */
  .nav-links > a,
  .nav-links > .nav-item {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  
  .nav-links > a {
    font-size: 22px !important;
    padding: 14px 24px;
    display: block;
    color: var(--text);
  }
  
  /* Services parent link */
  .nav-item > a {
    font-size: 22px !important;
    padding: 14px 24px;
    display: block;
    color: var(--text);
    cursor: pointer;
    position: relative;
  }
  
  /* Arrow indicator for Services */
  .nav-item > a::after {
    content: '▼';
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
  }
  
  .nav-item.open > a::after {
    transform: rotate(180deg);
  }
  
  /* Mobile dropdown - stacked below parent */
  .nav-dropdown {
    position: static !important;
    margin-top: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    display: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-item.open .nav-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
  }
  
  .nav-dropdown a {
    padding: 12px 24px !important;
    font-size: 16px !important;
    color: var(--muted) !important;
    background: rgba(28, 28, 28, 0.5);
    border-radius: 4px;
  }
  
  .nav-dropdown a:hover {
    background: var(--surface2) !important;
    color: var(--text) !important;
  }
  
  /* Gold button on mobile */
  .nav-cta {
    background: var(--gold) !important;
    color: #000 !important;
    padding: 16px 32px !important;
    font-size: 14px !important;
    border-radius: 4px;
    margin-top: 16px;
  }
  
  /* Hamburger toggle */
  .nav-toggle {
    display: flex;
    z-index: 10002;
  }
  
  /* Hamburger → X animation */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}
/* ─── HERO SECTION ────────────────────────── */
.hero {
  padding: 180px 0 120px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 24px;
  max-width: 800px;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  border-radius: 2px;
  transition: all 0.2s;
  border: 1px solid var(--gold);
}
.cta-button:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
/* ─── FOOTER ──────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-main { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.footer-brand .logo-sub  { font-size: 9px; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); }
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 260px; line-height: 1.7; }
.footer-col .footer-heading { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { font-size: 13px; color: var(--muted); padding: 5px 0; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: var(--muted); }
@media(max-width:900px){
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  
  /* Mobile menu overlay - fixed, centered stack */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 10001;
    padding: 100px 40px 80px;
    overflow-y: auto;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  /* Lock body scroll */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  
  /* Vertically stacked menu items */
  .nav-links > a,
  .nav-links > .nav-item {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  
  .nav-links > a {
    font-size: 22px !important;
    padding: 14px 24px;
    display: block;
    color: var(--text);
  }
  
  /* Services parent link */
  .nav-item > a {
    font-size: 22px !important;
    padding: 14px 24px;
    display: block;
    color: var(--text);
    cursor: pointer;
    position: relative;
  }
  
  /* Arrow indicator for Services */
  .nav-item > a::after {
    content: '▼';
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
  }
  
  .nav-item.open > a::after {
    transform: rotate(180deg);
  }
  
  /* Mobile dropdown - stacked below parent */
  .nav-dropdown {
    position: static !important;
    margin-top: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    display: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-item.open .nav-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
  }
  
  .nav-dropdown a {
    padding: 12px 24px !important;
    font-size: 16px !important;
    color: var(--muted) !important;
    background: rgba(28, 28, 28, 0.5);
    border-radius: 4px;
  }
  
  .nav-dropdown a:hover {
    background: var(--surface2) !important;
    color: var(--text) !important;
  }
  
  /* Gold button on mobile */
  .nav-cta {
    background: var(--gold) !important;
    color: #000 !important;
    padding: 16px 32px !important;
    font-size: 14px !important;
    border-radius: 4px;
    margin-top: 16px;
  }
  
  /* Hamburger toggle */
  .nav-toggle {
    display: flex;
    z-index: 10002;
  }
  
  /* Hamburger → X animation */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr;}
}
/* Enhanced clickable cards */
.service-card,
.blog-card {
  cursor: pointer;
  user-select: none;
}
.service-card.hovering,
.blog-card.hovering {
  transform: translateY(-4px);
}
.service-card:active,
.blog-card:active {
  transform: translateY(-2px);
}
/* ─── ACCESSIBILITY: skip link, reduced motion, no-JS fallback ─── */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--gold); color: #000; font-weight: 600; font-size: 14px; border-radius: 2px; transition: top .15s; }
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ─── RELATED LINKS / RESPONSIVE IMAGES ─── */
picture { display: contents; }
.related-section .section-title { font-size: clamp(24px, 3.5vw, 32px); }
.related-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 32px; }
.related-list li { font-size: 15px; line-height: 1.5; }
.related-list a { color: var(--gold); transition: color .2s; }
.related-list a:hover { color: var(--gold-light); text-decoration: underline; }
.post-meta { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.port-browse { max-width: 1240px; margin: 0 auto; padding: 0 40px 36px; }
@media (max-width: 768px) { .port-browse { padding: 0 24px 28px; } }
