:root {
  --navy: #0b1f4a;
  --nav-blue: #1a3a7a;
  --primary: #2554a8;
  --gold: #c9a84c;
  --gold-dk: #a8893e;
  --cream: #fdf6e3;
  --white: #ffffff;
  --txt-dark: #0f1f3d;
  --txt-mid: #4a5568;
  --txt-lite: #6b7280;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-brd: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 16px 46px rgba(15, 31, 61, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(circle at 6% 6%, rgba(201, 168, 76, 0.16), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(37, 84, 168, 0.18), transparent 30%),
    linear-gradient(180deg, #fdf8ea 0%, #f8efe0 100%);
  color: var(--txt-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(26, 58, 122, 0.92), rgba(11, 31, 74, 0.94));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(11, 31, 74, 0.25);
}

.site-nav {
  max-width: 1280px;
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 48px;
}

.site-logo {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  margin-right: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.6);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  width: 42px;
  height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-lines {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-block;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 6px; }
.nav-toggle-lines span:nth-child(3) { top: 12px; }

.nav-toggle.open .nav-toggle-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle.open .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.site-nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  list-style: none;
}

.site-nav-links a {
  color: rgba(255,255,255,.86);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 12.5px;
  font-weight: 500;
  transition: color .2s ease;
}

.site-nav-links a.active,
.site-nav-links a:hover {
  color: var(--gold);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 6px;
  transition: color .15s;
}

.nav-drop-trigger.active,
.nav-drop-trigger:hover {
  color: var(--gold);
}

.nav-caret {
  transition: transform .2s;
}

.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11,31,74,.2);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
}

.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  padding: 9px 16px;
  color: var(--txt-dark) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .12s, color .12s;
}

.nav-drop-menu a:hover {
  background: rgba(37,84,168,.08);
  color: var(--primary) !important;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link,
.login-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 24px;
  padding: 8px 18px;
}

.cart-link {
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
}

.login-btn {
  color: #fff;
  background: var(--primary);
}

.login-btn:hover {
  background: #1e47a0;
}

.page-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 16px 58px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(132deg, rgba(11, 31, 74, 0.96), rgba(26, 58, 122, 0.92));
  color: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  margin-bottom: 24px;
  box-shadow: 0 18px 44px rgba(11, 31, 74, 0.26);
  animation: riseIn .55s ease both;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -48px;
  top: -78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.55) 0%, rgba(201, 168, 76, 0) 72%);
  pointer-events: none;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
}

.page-hero p {
  margin: 0;
  color: rgba(255,255,255,.85);
}

.policy-card,
.glass-card {
  background: var(--glass-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(18px, 2.8vw, 34px);
  animation: riseIn .5s ease both;
}

.policy-card + .policy-card,
.glass-card + .glass-card {
  margin-top: 18px;
}

.policy-card h1,
.policy-card h2,
.policy-card h3,
.glass-card h1,
.glass-card h2,
.glass-card h3 {
  font-family: var(--serif);
  color: var(--txt-dark);
  margin-top: 0;
}

.policy-card h2,
.glass-card h2 { font-size: 32px; margin-bottom: 14px; }
.policy-card h3,
.glass-card h3 { font-size: 20px; margin: 22px 0 10px; }

.policy-card p,
.policy-card li,
.glass-card p,
.glass-card li {
  color: var(--txt-mid);
  line-height: 1.72;
  font-size: 15px;
}

.policy-card ul,
.glass-card ul {
  margin: 8px 0 12px 22px;
  padding: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.info-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 84, 168, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.info-pill h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--txt-dark);
}

.info-pill p {
  margin: 0;
  font-size: 14px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form-grid .full {
  grid-column: 1 / -1;
}

.contact-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0;
  color: var(--txt-dark);
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 61, 0.16);
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--sans);
}

.contact-form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-card button {
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-form-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.35);
}

.form-msg {
  margin-top: 10px;
  font-size: 14px;
  color: var(--txt-dark);
}

.site-footer {
  margin-top: 40px;
  background: var(--navy);
  padding: 56px 64px 32px;
  overflow-x: hidden;
}

.site-footer .ft-grid {
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer .ft-brand h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
}

.site-footer .ft-brand p {
  margin: 0 0 22px;
  font-size: 13px;
  color: rgba(255,255,255,.52);
  line-height: 1.82;
  max-width: 320px;
}

.site-footer .socials {
  display: flex;
  gap: 10px;
}

.site-footer .soc-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .soc-btn:hover {
  background: rgba(255,255,255,.2);
}

.site-footer .soc-btn svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,.72);
}

.site-footer .ft-col h4 {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.site-footer .ft-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .ft-col a {
  font-size: 13px;
  color: rgba(255,255,255,.52);
  text-decoration: none;
}

.site-footer .ft-col a:hover {
  color: #fff;
}

.site-footer .ft-contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.site-footer .ft-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  margin-top: 2px;
}

.site-footer .ft-contact span {
  font-size: 13px;
  color: rgba(255,255,255,.52);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer .ft-bottom {
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-footer .ft-bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.32);
}

.site-footer .ft-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer .ft-legal a {
  font-size: 12px;
  color: rgba(255,255,255,.32);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .ft-legal a:hover {
  color: rgba(255,255,255,.7);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: relative;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
    min-height: 64px;
  }

  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
    order: 3;
    flex: 0 0 auto;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    width: auto;
    order: 4;
    flex-direction: column;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(26, 58, 122, 0.98), rgba(11, 31, 74, 0.98));
    box-shadow: 0 14px 30px rgba(11, 31, 74, 0.32);
    gap: 12px;
    z-index: 120;
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-actions {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
    order: 2;
    gap: 8px;
    flex: 0 0 auto;
  }

  .cart-link,
  .login-btn {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .cart-badge {
    margin-left: 4px;
  }

  /* Mobile dropdown */
  .nav-dropdown {
    position: static;
    display: block;
  }
  .nav-drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    display: none;
  }
  .nav-dropdown.open .nav-drop-menu {
    display: block;
  }
  .nav-drop-menu a {
    color: rgba(255,255,255,.8) !important;
    padding: 6px 10px;
    font-size: 13px;
  }
  .nav-drop-menu a:hover {
    background: transparent;
    color: var(--gold) !important;
  }
  .nav-drop-trigger {
    font-size: 14px;
  }

  .site-footer .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
  }

  .site-footer .ft-brand {
    grid-column: 1 / -1;
  }

  .site-footer .ft-brand p {
    max-width: none;
  }

  .site-footer .ft-col ul {
    gap: 8px;
  }

  .site-footer .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px 14px 24px;
  }

  .site-footer .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
  }

  .site-footer .ft-brand {
    grid-column: 1 / -1;
  }

  .site-footer .ft-brand h3 {
    font-size: 20px;
  }

  .site-footer .ft-bottom {
    gap: 8px;
    padding-top: 18px;
  }

  .site-footer .ft-legal {
    width: 100%;
    gap: 8px 10px;
  }

  .site-footer .ft-legal a {
    white-space: normal;
  }

  .page-main {
    padding: 20px 12px 40px;
  }

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

  /* Responsive overrides for legacy page templates */
  .wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 12px;
  }

  .row,
  .grid,
  .cards,
  .blog-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .card,
  .box,
  .panel {
    width: 100%;
    max-width: 100%;
  }

  img,
  svg,
  iframe {
    max-width: 100%;
    height: auto;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 420px) {
  .site-footer {
    padding: 34px 12px 20px;
  }

  .site-footer .ft-contact {
    gap: 8px;
    margin-bottom: 12px;
  }

  .site-footer .ft-contact span {
    font-size: 12px;
    line-height: 1.45;
  }

  .site-footer .socials {
    flex-wrap: wrap;
  }

  .site-footer .ft-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-footer .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .site-footer .ft-brand {
    grid-column: 1 / -1;
  }
}

/* Legacy template consistency layer */
main + .wrap,
body > .wrap {
  max-width: 1120px;
  margin: 24px auto;
  padding: 20px;
}

.wrap h1,
.wrap h2,
.wrap h3 {
  font-family: var(--serif);
  color: var(--txt-dark);
}

.wrap .top {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.wrap .card,
.wrap .side,
.wrap .box,
.wrap .panel {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 36px rgba(15, 31, 61, 0.12);
  backdrop-filter: blur(10px);
}

.wrap .card,
.wrap .side {
  padding: 14px;
}

.wrap .grid,
.wrap .main {
  gap: 16px;
}

.wrap .cat,
.wrap .tag,
.wrap .badge {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 84, 168, 0.16);
  color: var(--txt-dark);
}

.wrap .meta,
.wrap .muted {
  color: var(--txt-lite);
}

.wrap input,
.wrap select,
.wrap textarea,
.wrap button {
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 61, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--txt-dark);
  font-family: var(--sans);
}

.wrap button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--navy);
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.wrap button:hover {
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.32);
}

.wrap a {
  color: var(--primary);
}

.wrap hr {
  border: 0;
  border-top: 1px solid rgba(15, 31, 61, 0.12);
}

.wrap .links a,
.wrap .pager a {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 84, 168, 0.18);
  color: var(--txt-dark);
  border-radius: 10px;
  text-decoration: none;
}

.wrap table {
  width: 100%;
  border-collapse: collapse;
}

.wrap th,
.wrap td {
  border-bottom: 1px solid rgba(15, 31, 61, 0.1);
  padding: 10px;
  text-align: left;
}
