:root {
  --primary: #0A2E42;
  --primary-dark: #061C29;
  --primary-soft: #1D4D6A;
  --secondary: #1C8A9E;
  --aqua: #5BC0BE;
  --copper: #B87333;
  --copper-light: #D69968;
  --ink: #0F1D26;
  --text: #2B3D48;
  --muted: #667784;
  --subtle: #94A4AF;
  --line: #E5E9ED;
  --hairline: #EEF1F4;
  --bg: #FFFFFF;
  --cream: #FAF7F2;
  --foam: #F4F8FA;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 46, 66, 0.04), 0 2px 6px rgba(10, 46, 66, 0.04);
  --shadow: 0 4px 12px rgba(10, 46, 66, 0.06), 0 14px 40px rgba(10, 46, 66, 0.06);
  --shadow-lg: 0 20px 60px rgba(10, 46, 66, 0.12);
  --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-weight: 500; }
h2 { font-weight: 500; }

p { color: var(--text); }

.container { width: min(1240px, 92%); margin: 0 auto; }
.container-narrow { width: min(920px, 92%); margin: 0 auto; }

/* ------- BUTTONS (elegant sliding-panel fill) ------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 34px; border-radius: 50px;
  background: var(--primary); color: #fff !important;
  font-family: inherit;
  font-weight: 500; font-size: 12.5px; letter-spacing: 1.4px;
  text-transform: uppercase;
  border: 1px solid var(--primary); cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: border-color 0.5s ease, color 0.4s ease, transform 0.4s var(--ease-out);
}
/* sliding panel — slides in from left, fills button with a deeper shade */
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--primary-dark);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
/* arrow — slides and fades on hover */
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 14px; position: relative; overflow: hidden;
}
.btn .arrow::before,
.btn .arrow::after {
  content: '\2192';
  position: absolute; left: 0; font-size: 16px; line-height: 1;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn .arrow::before { transform: translateX(0); }
.btn .arrow::after  { transform: translateX(-130%); }
.btn:hover .arrow::before { transform: translateX(140%); }
.btn:hover .arrow::after  { transform: translateX(0); }

.btn:hover { border-color: var(--primary-dark); transform: translateY(-1px); }
.btn:hover::before { transform: translateX(0); }

/* Variants */
.btn-outline {
  background: transparent; color: var(--primary) !important;
  border-color: var(--primary);
}
.btn-outline::before { background: var(--primary); }
.btn-outline:hover { color: #fff !important; border-color: var(--primary); }

.btn-copper {
  background: var(--copper); color: #fff !important;
  border-color: var(--copper);
}
.btn-copper::before { background: #8F5826; }
.btn-copper:hover { border-color: #8F5826; }

.btn-light {
  background: #fff; color: var(--primary) !important;
  border-color: #fff;
}
.btn-light::before { background: var(--primary); }
.btn-light:hover { color: #fff !important; border-color: var(--primary); }

.btn-ghost {
  background: transparent; color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--primary) !important; border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 500; font-size: 13px; letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary); position: relative; padding-bottom: 4px;
}
.link-arrow::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.link-arrow .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 14px; position: relative; overflow: hidden;
}
.link-arrow .arrow::before,
.link-arrow .arrow::after {
  content: '\2192';
  position: absolute; left: 0; font-size: 15px; line-height: 1;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.link-arrow .arrow::before { transform: translateX(0); }
.link-arrow .arrow::after  { transform: translateX(-130%); }
.link-arrow:hover { color: var(--copper); }
.link-arrow:hover::before { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover .arrow::before { transform: translateX(140%); }
.link-arrow:hover .arrow::after  { transform: translateX(0); }

/* ------- SECTIONS ------- */
.section { padding: 120px 0; }
.section-compact { padding: 80px 0; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--copper); margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.section-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--copper);
}

.section-head { margin-bottom: 70px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-eyebrow::before { display: none; }
.section-head.center .section-eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 620px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ------- REVEAL ANIMATION ------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* Page banner fade-in on load */
.page-banner .crumbs,
.page-banner h1,
.page-banner p {
  opacity: 0;
  transform: translateY(28px);
  animation: bannerFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.page-banner .crumbs { animation-delay: 0.15s; }
.page-banner h1     { animation-delay: 0.3s; }
.page-banner p      { animation-delay: 0.45s; }

@keyframes bannerFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ------- HEADER (always solid ivory) ------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 252, 240, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e8e0cc;
  box-shadow: 0 1px 20px rgba(10, 46, 66, 0.06);
}

/* Top bar — always navy */
.top-bar {
  background: var(--primary); color: #fff;
  font-size: 12.5px; letter-spacing: 0.3px;
}
.top-bar-inner { display: flex; justify-content: space-between; padding: 9px 0; flex-wrap: wrap; gap: 10px; }
.top-bar-inner > span:first-child { opacity: 0.9; }
.top-contact a { color: #fff; margin-left: 22px; opacity: 0.9; transition: opacity var(--transition); }
.top-contact a:hover { opacity: 1; color: var(--aqua); }

.main-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  min-height: 120px;
}
.brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex; align-items: center;
}
.brand img {
  height: auto; width: auto;
  max-height: 110px; max-width: 190px;
  object-fit: contain;
  transition: transform var(--transition);
}
.brand:hover img { transform: scale(1.04); }

.nav-links {
  display: flex; gap: 2px; align-items: center;
  grid-column: 2;
  justify-self: center;
}
.main-nav > .nav-cta {
  grid-column: 3;
  justify-self: end;
}
.nav-links a {
  padding: 12px 22px; color: var(--ink); font-weight: 500; font-size: 16.5px;
  letter-spacing: 0.2px; border-radius: var(--radius-sm);
  position: relative; transition: color var(--transition);
}
.nav-links a:hover { color: var(--copper); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper);
}

.nav-cta {
  padding: 14px 30px !important;
  background: var(--primary); color: #fff !important;
  border-radius: 50px; font-size: 13.5px !important;
  letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--primary) !important;
  transition: background 0.45s ease, border-color 0.45s ease;
}
.nav-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark) !important;
}
.nav-cta.active::after { display: none; }

/* ---- HAMBURGER BUTTON ---- */
.ham-btn {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 10px;
  position: relative; z-index: 201;
  transition: background 0.3s ease;
}
.ham-btn:hover { background: rgba(10,46,66,0.06); }
.ham-bar {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: transform 0.45s cubic-bezier(0.76,0,0.24,1),
              opacity   0.3s ease,
              width     0.4s ease;
  transform-origin: center;
}
/* Animate to X when open */
.nav-open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .ham-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE BACKDROP ---- */
.mob-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 198;
  background: rgba(6,28,41,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.nav-open .mob-backdrop { opacity: 1; pointer-events: auto; }

/* ---- MOBILE NAV PANEL ---- */
.mob-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  z-index: 199;
  background: #fffcf0;
  transform: translateX(105%);
  transition: transform 0.55s cubic-bezier(0.76,0,0.24,1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(6,28,41,0.18);
  overflow-y: auto; overflow-x: hidden;
}
.nav-open .mob-nav { transform: translateX(0); }

.mob-nav-inner {
  display: flex; flex-direction: column;
  min-height: 100%; padding: 0;
}

/* Top row — logo + close */
.mob-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e8e0cc;
  position: sticky; top: 0; background: #fffcf0; z-index: 2;
}
.mob-brand img { height: 52px; width: auto; object-fit: contain; }
.mob-close {
  width: 40px; height: 40px;
  background: var(--primary); border: none; border-radius: 50%;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: background 0.3s ease, transform 0.4s ease;
}
.mob-close:hover { background: var(--copper); transform: rotate(90deg); }
.mob-close span {
  position: absolute; width: 16px; height: 2px;
  background: #fff; border-radius: 2px;
  top: 50%; left: 50%; transform-origin: center;
}
.mob-close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.mob-close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

/* Nav links */
.mob-links {
  display: flex; flex-direction: column;
  padding: 16px 0;
  flex: 1;
}
.mob-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  text-decoration: none;
  border-bottom: 1px solid #f0e8d8;
  position: relative; overflow: hidden;
  transition: background 0.35s ease, padding-left 0.35s ease;

  /* stagger in */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease calc(var(--i) * 0.07s),
              transform 0.5s cubic-bezier(0.22,1,0.36,1) calc(var(--i) * 0.07s),
              background 0.3s ease,
              padding-left 0.3s ease;
}
.nav-open .mob-link { opacity: 1; transform: translateX(0); }
.mob-link:hover { background: #f7efe0; padding-left: 36px; }
.mob-link.is-active { background: #f2e8d4; }
.mob-link.is-active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--copper); border-radius: 0 4px 4px 0;
}

.mob-link-num {
  font-family: 'Playfair Display', serif;
  font-size: 12px; color: var(--copper); font-weight: 400;
  width: 24px; flex-shrink: 0;
}
.mob-link-label {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 500; color: var(--primary);
  letter-spacing: -0.01em; flex: 1;
}
.mob-link.is-active .mob-link-label { color: var(--copper); }
.mob-link-arrow {
  font-size: 18px; color: var(--muted);
  transition: transform 0.35s ease, color 0.3s ease;
}
.mob-link:hover .mob-link-arrow { transform: translateX(6px); color: var(--copper); }

/* Footer area */
.mob-nav-footer {
  padding: 24px 28px 32px;
  border-top: 1px solid #e8e0cc;
  display: flex; flex-direction: column; gap: 18px;
  margin-top: auto;

  opacity: 0;
  transition: opacity 0.5s ease 0.45s;
}
.nav-open .mob-nav-footer { opacity: 1; }
.mob-cta { align-self: stretch; justify-content: center; text-align: center; }
.mob-contact { display: flex; flex-direction: column; gap: 6px; }
.mob-contact a {
  font-size: 13.5px; color: var(--muted);
  transition: color 0.3s ease;
}
.mob-contact a:hover { color: var(--copper); }
.mob-tagline {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--subtle); text-align: center;
  padding-top: 8px; border-top: 1px solid #ece4d6;
}

/* Show hamburger + hide desktop nav on mobile */
@media (max-width: 960px) {
  .main-nav {
    display: flex; justify-content: flex-end;
    min-height: 100px; padding: 10px 0;
  }
  .brand img { max-height: 82px; max-width: 150px; }
  .ham-btn { display: flex; }
  .nav-links, .main-nav > .nav-cta { display: none; }
  .mob-backdrop { display: block; pointer-events: none; }
  .nav-open .mob-backdrop { pointer-events: auto; }
}

/* Prevent body scroll when nav is open */
body.nav-open { overflow: hidden; }

/* ------- PAGE BANNER ------- */
.page-banner {
  padding: 220px 0 100px; text-align: left; color: #fff;
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6,28,41,0.88) 0%, rgba(10,46,66,0.75) 60%, rgba(29,77,106,0.55) 100%),
    url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.page-banner .crumbs {
  position: relative; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.page-banner .crumbs::before {
  content: ''; width: 32px; height: 1px; background: var(--aqua);
}
.page-banner h1 {
  color: #fff; font-size: clamp(42px, 6vw, 72px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  max-width: 900px;
}
.page-banner p { color: rgba(255,255,255,0.8); margin-top: 20px; font-size: 18px; max-width: 640px; line-height: 1.6; }

/* ------- FOOTER ------- */
.site-footer { background: var(--primary-dark); color: #A8BDCB; padding-top: 0; margin-top: 0; position: relative; }
.footer-top {
  padding: 90px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 60px; }
.footer-grid h4 {
  color: #fff; margin-bottom: 22px;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.footer-grid p { color: #8FA5B4; font-size: 14.5px; line-height: 1.7; }
.footer-grid ul li { margin-bottom: 12px; font-size: 14.5px; }
.footer-grid ul li a { color: #A8BDCB; transition: color var(--transition), padding-left var(--transition); display: inline-block; }
.footer-grid ul li a:hover { color: var(--copper-light); padding-left: 6px; }
.brand-footer {
  display: inline-flex; margin-bottom: 22px;
  background: #fff; padding: 14px 22px; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.brand-footer img { height: 80px; display: block; }
.contact-list li { line-height: 1.5; margin-bottom: 16px; }
.contact-list li strong { color: #fff; display: block; font-weight: 500; font-family: 'Playfair Display', serif; font-size: 15.5px; }
.contact-list li span { font-size: 11px; color: var(--copper-light); letter-spacing: 2px; text-transform: uppercase; }
.contact-list li a { display: block; font-size: 13.5px; color: #A8BDCB; }

.newsletter { display: flex; margin-top: 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; overflow: hidden; transition: border-color var(--transition); }
.newsletter:focus-within { border-color: var(--copper); }
.newsletter input {
  flex: 1; padding: 14px 18px; border: none;
  background: transparent; color: #fff; outline: none;
  font-family: inherit; font-size: 14px;
}
.newsletter input::placeholder { color: #6F8897; }
.newsletter button {
  background: var(--copper); color: #fff; border: none; padding: 0 24px;
  cursor: pointer; font-weight: 500; font-size: 13px; letter-spacing: 0.3px;
  transition: background var(--transition); font-family: inherit;
}
.newsletter button:hover { background: var(--copper-light); }

.footer-bottom { padding: 28px 0; font-size: 13px; color: #6F8897; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #A8BDCB;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 14px;
}
.social-links a:hover { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-2px); }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .top-bar-inner { justify-content: center; text-align: center; }
  .top-contact a { margin: 0 10px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .section { padding: 70px 0; }
}

/* ---- GLOBAL MOBILE ---- */
@media (max-width: 768px) {
  .page-banner { padding: 150px 0 70px; }
  .page-banner h1 { font-size: clamp(30px, 8vw, 52px); }
  .page-banner p { font-size: 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 42px); }
  .btn { padding: 13px 26px; font-size: 11.5px; }
}

@media (max-width: 480px) {
  .page-banner { padding: 130px 0 60px; }
  .page-banner h1 { font-size: clamp(26px, 9vw, 38px); }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .top-bar { display: none; }
  .footer-grid h4 { font-size: 11px; }
  .brand-footer img { height: 60px; }
  .newsletter { flex-direction: column; border-radius: 12px; }
  .newsletter input { padding: 14px 18px; }
  .newsletter button { padding: 14px; border-radius: 0 0 10px 10px; }
}
