/* ============================================================
   Sea Breeze CMS — Public Site Stylesheet
   Port of the original index.html visual design.
   Visual-editor-only rules have been removed.
   ============================================================ */


:root {
  --bg: #F7F9FC;
  --bg-paper: #FFFFFF;
  --bg-tint: #EEF2F7;
  --navy: #0A2540;
  --navy-700: #14365C;
  --navy-500: #1F4E7A;
  --navy-300: #6B89A8;
  --brass: #C8A24B;
  --brass-soft: #E4D29A;
  --brass-deep: #8E6F26;
  --ink: #0A2540;
  --ink-soft: #33485F;
  --ink-muted: #6B89A8;
  --rule: rgba(10, 37, 64, 0.12);
  --rule-strong: rgba(10, 37, 64, 0.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, h5, h6, .sans { font-family: 'Inter', system-ui, sans-serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 4px; width: 100%; background: white; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brass); outline-offset: -1px; }
label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 6px; }

/* Layout */
.app { flex: 1; display: flex; flex-direction: column; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(10,37,64,0.04);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: 'Inter'; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; cursor: pointer; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.brand-mark::before { content: '⚓'; }
.brand-mark img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
}
/* When a custom logo image is set, hide the default anchor emoji */
.brand-mark.has-logo::before { display: none; }
/* Light variant for dark backgrounds (footer) */
.brand-mark.light {
  background: var(--brass); color: var(--navy);
}
.brand-mark.light.has-logo { background: transparent; }
.footer-logo img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 9px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: 'Inter'; font-size: 13px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 4px; cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.02em;
}
.nav-link:hover { background: var(--bg-tint); color: var(--navy); }
.nav-link.active { color: var(--navy); font-weight: 600; }
.nav-link.active::after { content: ''; display: block; height: 2px; background: var(--brass); margin-top: 4px; border-radius: 1px; }
.staff-portal {
  font-family: 'Inter'; font-size: 11px; color: var(--ink-muted); cursor: pointer;
  padding: 6px 10px; letter-spacing: 0.16em; text-transform: uppercase;
  border-left: 1px solid var(--rule); margin-left: 8px;
  transition: color 0.15s;
}
.staff-portal:hover { color: var(--brass-deep); }
.menu-toggle { display: none; font-size: 24px; color: var(--navy); background: none; cursor: pointer; }

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--bg-tint); border-bottom: 1px solid var(--rule);
  font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; height: 36px; flex-wrap: wrap; }
.breadcrumb-crumb { color: var(--navy); cursor: pointer; font-weight: 500; }
.breadcrumb-crumb:hover { color: var(--brass-deep); }
.breadcrumb-crumb.current { color: var(--brass-deep); font-weight: 600; }
.breadcrumb-sep { color: var(--rule-strong); }

/* Main */
main { flex: 1; }

/* Hero */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(10,37,64,0.65) 60%, rgba(10,37,64,0.85) 100%),
    url('https://sfile.chatglm.cn/images-ppt/f8eab16fdde2.jpg') center/cover no-repeat;
  color: white;
}
.hero-inner { padding: 80px 0; max-width: 720px; }
.hero-eyebrow { font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--brass); }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero-tagline { font-family: 'Source Serif 4'; font-style: italic; font-size: 20px; line-height: 1.5; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 600px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brass); color: var(--navy);
  padding: 14px 24px; border-radius: 4px; font-family: 'Inter'; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.hero-cta:hover { background: var(--brass-soft); transform: translateY(-1px); }

/* Trust strip */
.trust-strip { background: var(--navy); color: white; padding: 20px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: 'Inter'; font-size: 28px; font-weight: 800; color: var(--brass); letter-spacing: -0.02em; line-height: 1; }
.trust-label { font-family: 'Inter'; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Section */
.section { padding: 72px 0; }
.section-header { margin-bottom: 40px; }
.section-eyebrow { font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass-deep); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--brass); }
.section-title { font-size: 36px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; max-width: 800px; }
.section-lead { font-family: 'Source Serif 4'; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 720px; margin-top: 14px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  background: white; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(10,37,64,0.15); border-color: var(--brass); }
.service-thumb { height: 180px; background: var(--navy); position: relative; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.service-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,64,0.1) 0%, rgba(10,37,64,0.55) 100%); }
.service-icon {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brass); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.service-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.service-name { font-family: 'Inter'; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-tagline { font-family: 'Source Serif 4'; font-style: italic; font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.service-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.service-cta { font-family: 'Inter'; font-size: 11px; font-weight: 600; color: var(--brass-deep); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,37,64,0.78); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: white; border-radius: 8px; max-width: 920px; width: 100%; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px -12px rgba(0,0,0,0.4);
}
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: 'Inter'; font-size: 20px; font-weight: 700; color: var(--navy); }
.modal-close { font-size: 24px; color: var(--ink-muted); cursor: pointer; background: none; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--navy); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

/* Slideshow */
.slideshow { position: relative; background: var(--navy); border-radius: 4px; overflow: hidden; height: 400px; }
.slideshow-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.slideshow-slide.active { opacity: 1; }
.slideshow-slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,64,0.05) 0%, rgba(10,37,64,0.65) 100%); pointer-events: none; }
.slideshow-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; color: white; z-index: 2; font-family: 'Inter'; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.slideshow-badge { position: absolute; top: 14px; right: 14px; background: var(--brass); color: var(--navy); font-family: 'Inter'; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; padding: 5px 10px; border-radius: 3px; z-index: 3; }
.slideshow-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; z-index: 3; transition: background 0.15s; }
.slideshow-nav:hover { background: white; }
.slideshow-nav.prev { left: 14px; }
.slideshow-nav.next { right: 14px; }
.slideshow-dots { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 6px; z-index: 3; }
.slideshow-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.15s; }
.slideshow-dot.active { background: var(--brass); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: white; border: 1px solid var(--rule); border-radius: 6px; padding: 22px; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--brass); box-shadow: 0 8px 20px -6px rgba(10,37,64,0.1); }
.news-cat { font-family: 'Inter'; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 10px; }
.news-title { font-family: 'Inter'; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.news-excerpt { font-family: 'Source Serif 4'; font-size: 14px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.news-date { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--ink-muted); margin-top: 14px; letter-spacing: 0.06em; }

/* News card cover image */
.news-cover {
  position: relative;
  height: 180px;
  margin: -22px -22px 16px -22px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: var(--navy);
}
.news-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.05) 0%, rgba(10,37,64,0.45) 100%);
  pointer-events: none;
}
.news-cover-badge {
  position: absolute;
  bottom: 12px; left: 14px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10, 37, 64, 0.85);
  color: var(--brass);
  font-family: 'Inter'; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  border-left: 2px solid var(--brass);
}
.news-cover-gallery-count {
  position: absolute;
  bottom: 12px; right: 14px;
  z-index: 2;
  background: var(--brass);
  color: var(--navy);
  font-family: 'Inter'; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 9px; border-radius: 3px;
  display: flex; align-items: center; gap: 4px;
}

/* News modal gallery */
.news-modal-cover {
  position: relative;
  height: 280px;
  margin: -24px -24px 20px -24px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: var(--navy);
}
.news-modal-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.news-modal-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.1) 0%, rgba(10,37,64,0.6) 100%);
  pointer-events: none;
}
.news-modal-cover-caption {
  position: absolute;
  bottom: 16px; left: 20px; right: 20px;
  z-index: 2;
  color: white;
  font-family: 'Source Serif 4'; font-style: italic; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Gallery section inside news modal */
.news-gallery {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.news-gallery-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.news-gallery-title {
  font-family: 'Inter'; font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-deep);
  display: flex; align-items: center; gap: 8px;
}
.news-gallery-count {
  font-family: 'IBM Plex Mono'; font-size: 11px;
  color: var(--ink-muted); letter-spacing: 0.06em;
}
.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.news-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-gallery-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--brass);
  box-shadow: 0 10px 24px -6px rgba(10,37,64,0.2);
}
.news-gallery-item img,
.news-gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.news-gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,37,64,0.7) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.news-gallery-item:hover::after { opacity: 1; }
.news-gallery-item-caption {
  position: absolute;
  bottom: 8px; left: 10px; right: 10px;
  z-index: 2;
  color: white;
  font-family: 'Inter'; font-size: 10px; font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-gallery-item:hover .news-gallery-item-caption {
  opacity: 1;
  transform: translateY(0);
}
.news-gallery-item-type {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 2;
  background: rgba(10, 37, 64, 0.85);
  color: var(--brass);
  font-family: 'Inter'; font-size: 8px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 2px;
  display: flex; align-items: center; gap: 3px;
}

/* Lightbox for gallery full view */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 37, 64, 0.95);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  animation: backdropEnter 0.3s ease;
}
.lightbox {
  position: relative;
  max-width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox img, .lightbox video {
  max-width: 90vw; max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: rgba(255,255,255,0.9);
  font-family: 'Source Serif 4'; font-style: italic; font-size: 14px;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: -40px; right: -10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(200, 162, 75, 0.3); }
.lightbox-nav.prev { left: -70px; }
.lightbox-nav.next { right: -70px; }
.lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-family: 'IBM Plex Mono'; font-size: 12px;
  letter-spacing: 0.1em;
}

/* Gallery upload dropzone (admin) */





/* Gallery item in admin editor */
.gallery-item-admin {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border: 1px solid var(--rule); border-radius: 4px; background: white;
  margin-bottom: 6px;
}
.gallery-item-admin img,
.gallery-item-admin video {
  width: 56px; height: 42px; object-fit: cover; border-radius: 3px; flex-shrink: 0;
}
.gallery-item-admin-info { flex: 1; min-width: 0; }
.gallery-item-admin-cap {
  font-family: 'Inter'; font-size: 12px; color: var(--navy); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-item-admin-meta {
  font-family: 'IBM Plex Mono'; font-size: 10px; color: var(--ink-muted); margin-top: 2px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: white; border-left: 3px solid var(--brass); padding: 22px 24px; border-radius: 0 4px 4px 0; box-shadow: 0 2px 8px rgba(10,37,64,0.04); }
.stat-num { font-family: 'Inter'; font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 18px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn { font-family: 'Inter'; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 22px; border-radius: 4px; cursor: pointer; transition: all 0.15s; border: none; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--brass); color: var(--navy); }
.btn-accent:hover { background: var(--brass-soft); }
.btn-secondary { background: white; color: var(--navy); border: 1px solid var(--rule-strong); }
.btn-secondary:hover { background: var(--bg-tint); }
.btn-danger { background: #B91C1C; color: white; }
.btn-danger:hover { background: #991B1B; }

/* Recently viewed rail */
.recently-viewed { background: var(--bg-tint); border-top: 1px solid var(--rule); padding: 18px 0; }
.recently-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.recently-label { font-family: 'Inter'; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.recently-chip { font-family: 'Inter'; font-size: 12px; color: var(--navy); background: white; border: 1px solid var(--rule); padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all 0.15s; }
.recently-chip:hover { border-color: var(--brass); color: var(--brass-deep); }

/* Footer */
.site-footer { background: var(--navy); color: white; padding: 56px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-name { font-family: 'Inter'; font-size: 16px; font-weight: 700; }
.footer-tagline { font-family: 'Source Serif 4'; font-style: italic; font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col h4 { font-family: 'Inter'; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col button { font-family: 'Inter'; font-size: 13px; color: rgba(255,255,255,0.78); cursor: pointer; background: none; border: none; padding: 0; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--brass); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter'; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--navy); color: white; padding: 24px 0; }
.admin-sidebar-title { font-family: 'Inter'; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); padding: 0 24px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 14px; }

/* Session timer widget in admin sidebar */
.session-widget {
  margin: 16px 16px 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  border-left: 2px solid var(--brass);
}
.session-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.session-widget-label {
  font-family: 'Inter'; font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.session-widget-icon {
  font-size: 13px; color: var(--brass);
}
.session-widget-timer {
  font-family: 'IBM Plex Mono'; font-size: 18px; font-weight: 600;
  color: #fff; letter-spacing: 0.02em; line-height: 1;
  margin-bottom: 8px;
}
.session-widget-bar {
  height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden; margin-bottom: 6px;
}
.session-widget-bar-fill {
  height: 100%; background: var(--brass);
  transition: width 1s linear, background 0.3s;
  border-radius: 2px;
}
.session-widget-hint {
  font-family: 'Inter'; font-size: 10px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Remember-me checkbox */
.remember-me-row {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 4px;
  cursor: pointer; user-select: none;
}
.remember-me-row input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--brass);
  margin: 0;
}
.remember-me-row label {
  font-family: 'Inter'; font-size: 12px; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 0.02em;
  text-transform: none; margin: 0; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.remember-me-row label small {
  font-size: 10px; color: var(--ink-muted); font-weight: 400;
  letter-spacing: 0.04em;
}
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; font-family: 'Inter'; font-size: 13px; color: rgba(255,255,255,0.78); cursor: pointer; transition: all 0.15s; border-left: 3px solid transparent; }
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-nav-item.active { background: rgba(200,162,75,0.1); color: var(--brass); border-left-color: var(--brass); }
.admin-main { padding: 32px 40px; background: var(--bg); overflow-y: auto; }
.admin-page-title { font-family: 'Inter'; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.admin-page-sub { font-family: 'Source Serif 4'; font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }

/* Admin cards */
.admin-card { background: white; border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; margin-bottom: 16px; transition: border-color 0.15s; }
.admin-card:hover { border-color: var(--brass); }
.admin-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.admin-card-title { font-family: 'Inter'; font-size: 16px; font-weight: 700; color: var(--navy); }
.admin-card-meta { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--ink-muted); letter-spacing: 0.08em; }

/* Audit log */
.audit-entry {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--rule);
  background: white; transition: background 0.15s;
}
.audit-entry:hover { background: var(--bg-tint); }
.audit-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  color: white; display: flex; align-items: center; justify-content: center;
  font-family: 'Inter'; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.audit-action-badge {
  font-family: 'Inter'; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 3px;
}
.admin-card-body { font-family: 'Source Serif 4'; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.admin-card-actions { display: flex; gap: 8px; margin-top: 14px; }

/* Login */
.login-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-tint); }
.login-card { background: white; border: 1px solid var(--rule); border-radius: 8px; padding: 40px; max-width: 420px; width: 100%; box-shadow: 0 18px 44px -18px rgba(10,37,64,0.18); }
.login-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.login-logo .brand-mark { width: 56px; height: 56px; font-size: 26px; margin-bottom: 14px; }
.login-logo h2 { font-family: 'Inter'; font-size: 18px; font-weight: 700; color: var(--navy); }
.login-logo p { font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); margin-top: 4px; }
.login-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; font-family: 'Inter'; }
.login-hint { background: var(--bg-tint); border-left: 3px solid var(--brass); padding: 12px 14px; margin-top: 20px; font-size: 12px; color: var(--ink-soft); font-family: 'IBM Plex Mono'; line-height: 1.6; }
.login-hint strong { color: var(--navy); font-weight: 600; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--navy); color: white; padding: 14px 20px; border-radius: 4px; font-family: 'Inter'; font-size: 13px; box-shadow: 0 8px 24px -6px rgba(10,37,64,0.3); display: flex; align-items: center; gap: 10px; min-width: 260px; animation: slideIn 0.3s ease; border-left: 3px solid var(--brass); }
.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 560px; background: var(--navy); color: white; padding: 18px 22px; border-radius: 6px; box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3); z-index: 90; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-banner p { flex: 1; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); min-width: 200px; }
.cookie-banner .btn { padding: 8px 14px; font-size: 11px; }

/* Exit guard modal */
.exit-guard { max-width: 420px; }
.exit-guard-icon { width: 48px; height: 48px; border-radius: 50%; background: #FEF3C7; color: #92400E; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.exit-guard-title { font-family: 'Inter'; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.exit-guard-body { font-family: 'Source Serif 4'; font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 22px; }

/* Image manager */
.image-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.image-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg-tint); }
.image-item img { width: 60px; height: 40px; object-fit: cover; border-radius: 3px; }
.image-item-url { flex: 1; font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-item-cap { font-family: 'Inter'; font-size: 12px; color: var(--navy); font-weight: 500; }
.image-item-actions { display: flex; gap: 4px; }
.icon-btn { width: 28px; height: 28px; border-radius: 3px; background: white; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.icon-btn:hover { background: var(--bg-tint); color: var(--navy); }
.icon-btn.danger:hover { background: #FEF2F2; color: #B91C1C; border-color: #FCA5A5; }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 16px; border-bottom: 1px solid var(--rule); box-shadow: 0 8px 16px rgba(0,0,0,0.06); }
  .nav-links.open .nav-link { padding: 12px; }
  .nav-links.open .staff-portal { border-left: none; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 16px; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 36px; }
  .hero-inner { padding: 48px 0; }
  .services-grid, .news-grid, .about-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .slideshow { height: 260px; }
  .modal { max-height: 95vh; }
}

.hidden { display: none !important; }

/* ============ VISUAL EDITOR MODE ============ */














/* Editable image hover overlay */









/* Hero overlay adjustments */
.hero
.hero 
.hero 

/* Image editor modal */


















/* ============ PAGE TRANSITIONS & SCROLL ANIMATIONS ============ */
html { scroll-behavior: smooth; }

/* View transition — fade + slide up */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section {
  animation: sectionFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.section:nth-child(2) { animation-delay: 0.08s; }
.section:nth-child(3) { animation-delay: 0.16s; }
.section:nth-child(4) { animation-delay: 0.24s; }
.section:nth-child(5) { animation-delay: 0.32s; }

/* Hero entrance */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: heroEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero h1 { animation: heroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-tagline { animation: heroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero-cta { animation: heroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }

/* Trust strip stagger */
@keyframes trustEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.trust-item { animation: trustEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.trust-item:nth-child(1) { animation-delay: 0.6s; }
.trust-item:nth-child(2) { animation-delay: 0.68s; }
.trust-item:nth-child(3) { animation-delay: 0.76s; }
.trust-item:nth-child(4) { animation-delay: 0.84s; }

/* Service card highlight — the signature element */
@keyframes serviceCardEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.service-card {
  animation: serviceCardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* Service card hover — strong highlight */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-soft) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -12px rgba(10, 37, 64, 0.25), 0 0 0 1px var(--brass);
  border-color: var(--brass);
}

/* Service thumbnail zoom on hover */
.service-thumb img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-thumb img {
  transform: scale(1.08);
}

/* Service icon pulse on hover */
@keyframes iconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 162, 75, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(200, 162, 75, 0); }
}
.service-card:hover .service-icon {
  animation: iconPulse 1.2s ease-in-out infinite;
}

/* Service CTA arrow slide */
.service-cta {
  transition: gap 0.3s ease;
}
.service-card:hover .service-cta {
  color: var(--brass-deep);
}
.service-cta::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-cta::after {
  transform: translateX(6px);
}

/* News card stagger */
@keyframes newsCardEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-card {
  animation: newsCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.news-card:nth-child(1) { animation-delay: 0.15s; }
.news-card:nth-child(2) { animation-delay: 0.25s; }
.news-card:nth-child(3) { animation-delay: 0.35s; }
.news-card:nth-child(4) { animation-delay: 0.45s; }
.news-card:nth-child(5) { animation-delay: 0.55s; }

/* Stat card reveal */
@keyframes statReveal {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.stat-card {
  animation: statReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Modal entrance */
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal {
  animation: modalEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes backdropEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-backdrop {
  animation: backdropEnter 0.25s ease;
}

/* Toast slide-in (already had one, refined) */
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast { animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* Nav link underline animation */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active::after { transform: scaleX(1); }

/* Hero CTA hover */
.hero-cta {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.hero-cta:hover::before { left: 100%; }
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(200, 162, 75, 0.5);
}

/* Scroll reveal — elements with .reveal class fade in when scrolled into view */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section header animated underline */
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--brass);
  margin-left: 8px;
  vertical-align: middle;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.section:hover .section-eyebrow::after,
.section-eyebrow::after {
  width: 40px;
}

/* Slideshow slide transition (already had opacity, add subtle scale) */
.slideshow-slide {
  transition: opacity 0.6s ease, transform 6s linear;
}
.slideshow-slide.active {
  transform: scale(1.03);
}

/* Breadcrumb pop */
@keyframes crumbPop {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.breadcrumb-crumb { animation: crumbPop 0.3s ease; }
.breadcrumb-sep { animation: crumbPop 0.3s ease 0.05s both; }

/* Button press feedback */
.btn:active { transform: scale(0.97); }
.btn { transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

/* Service thumbnail gradient overlay enhance */
.service-thumb::after {
  transition: background 0.4s ease;
}
.service-card:hover .service-thumb::after {
  background: linear-gradient(180deg, rgba(10,37,64,0.05) 0%, rgba(10,37,64,0.75) 100%);
}

/* Card glow on hover for news */
.news-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -8px rgba(10, 37, 64, 0.18);
}

/* ============ PARTNERS SECTION — Exceptional hover animations ============ */
.partners-section {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.partners-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brass) 50%, transparent 100%);
  opacity: 0.5;
}
.partners-header {
  text-align: center;
  margin-bottom: 40px;
}
.partners-header .section-eyebrow {
  justify-content: center;
}
.partners-header .section-eyebrow::before { display: none; }
.partners-header h2 {
  font-family: 'Inter';
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
}
.partners-header p {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Each partner card */
.partner-card {
  position: relative;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  animation: partnerEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.partner-card:nth-child(1) { animation-delay: 0.05s; }
.partner-card:nth-child(2) { animation-delay: 0.12s; }
.partner-card:nth-child(3) { animation-delay: 0.19s; }
.partner-card:nth-child(4) { animation-delay: 0.26s; }
.partner-card:nth-child(5) { animation-delay: 0.33s; }
.partner-card:nth-child(6) { animation-delay: 0.40s; }
.partner-card:nth-child(7) { animation-delay: 0.47s; }
.partner-card:nth-child(8) { animation-delay: 0.54s; }

@keyframes partnerEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo image — grayscale by default, color on hover */
.partner-logo {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.partner-logo img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.partner-name {
  font-family: 'Inter';
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.4s ease;
  text-align: center;
}

/* Shine sweep overlay */
.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(200, 162, 75, 0.15) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

/* Glow border that appears on hover */
.partner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-soft) 50%, var(--brass) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* EXCEPTIONAL HOVER STATE */
.partner-card:hover {
  transform: translateY(-10px) scale(1.04);
  border-color: var(--brass);
  box-shadow:
    0 24px 48px -12px rgba(10, 37, 64, 0.25),
    0 0 0 1px var(--brass),
    0 0 32px rgba(200, 162, 75, 0.3);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF0 100%);
}
.partner-card:hover::before { left: 150%; }
.partner-card:hover::after { opacity: 1; }
.partner-card:hover .partner-logo img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15) rotate(-2deg);
}
.partner-card:hover .partner-name {
  color: var(--navy);
  letter-spacing: 0.12em;
}

/* When hovering the grid, non-hovered cards dim slightly (focus effect) */
.partners-grid:hover .partner-card:not(:hover) {
  opacity: 0.55;
  transform: scale(0.97);
  transition: all 0.4s ease;
}

/* Floating badge that appears on hover */
.partner-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--brass);
  color: var(--navy);
  font-family: 'Inter';
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(-8px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}
.partner-card:hover .partner-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Visual editor editable state for partner logos */
.partner-card
.partner-card
.partner-card

/* Empty state */
.partners-empty {
  text-align: center;
  padding: 40px;
  color: var(--ink-muted);
  font-family: 'Source Serif 4';
  font-style: italic;
}

/* ============ End partners CSS ============ */

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ============================================================
   CMS-specific additions (empty state, flash messages, form styles)
   These are used by the public site's dynamic content.
   ============================================================ */

/* Empty state (no services / no news yet) */
.empty-state {
  padding: 60px 30px;
  text-align: center;
  color: var(--ink-muted);
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.6; }
.empty-state h3 { color: var(--ink-soft); margin: 0 0 6px; font-size: 16px; font-family: 'Inter', sans-serif; }
.empty-state p { margin: 0 0 16px; font-size: 13px; }

/* Flash messages (contact form feedback) */
.flash {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border-left: 4px solid;
}
.flash-success { background: #DDF3E5; color: #0B5B2E; border-color: #1B8F4B; }
.flash-error   { background: #F8DEDC; color: #7A1F1C; border-color: #B0322E; }
.flash-warn    { background: #FCEBC8; color: #6F4406; border-color: #B9770A; }
.flash-info    { background: #E5EEF7; color: #1F4E7A; border-color: var(--navy-500); }

/* Form styles (contact page) */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.form-actions {
  display: flex;
  gap: 10px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Admin card style (used on contact page for info panels) */
.admin-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
}

/* Button styles (contact page CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--brass); color: var(--navy); }
.btn-accent:hover { background: var(--brass-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink-soft); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--bg-tint); }

/* ============================================================
   Full-width "Who we are" section (when no stat cards are present)
   ============================================================ */
.about-full {
  max-width: 800px;
  margin: 0 auto;
}
.about-full .section-eyebrow {
  margin-bottom: 12px;
}
.about-full .section-lead {
  font-size: 16px;
  line-height: 1.7;
}
