/* ReviveAI — Generated Theme: Savile Row Tailoring */

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', sans-serif;
  color: #302a22;
  line-height: 1.7;
  background: #f7f3ec;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a2332; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #a8844b; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: #12192a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 20px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; margin: 40px 0 16px; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; margin: 28px 0 12px; }
h4 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 8px; }
p { margin-bottom: 16px; font-size: 1.05rem; }

/* ─── Layout ─── */
.rv-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.rv-container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ─── Header / Navigation ─── */
.rv-header {
  background: #1a2332;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.rv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 64px;
}
.rv-logo {
  color: #fff;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.rv-logo:hover { color: #fff; opacity: 0.92; }

.rv-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.rv-nav-item { position: relative; }
.rv-nav-item > a {
  display: block;
  padding: 20px 14px;
  color: rgba(247,243,236,0.92);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  border-radius: 2px;
}
.rv-nav-item > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.rv-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fdfbf6;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px #dcd3c0;
  min-width: 240px;
  padding: 8px 0;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  transform: translateX(-50%) translateY(4px);
}
.rv-nav-item:hover .rv-dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.rv-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #302a22;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.rv-dropdown a:hover {
  background: #efe8db;
  color: #1a2332;
  padding-left: 24px;
}

/* Hamburger */
.rv-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: 2px;
  transition: background 0.2s;
}
.rv-hamburger:hover { background: rgba(255,255,255,0.1); }

/* ─── Hero ─── */
.rv-hero {
  background: linear-gradient(145deg, rgba(14,21,32,0.92) 0%, rgba(26,35,50,0.82) 55%, rgba(168,132,75,0.42) 100%);
  color: #f7f3ec;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.rv-hero h1 {
  color: #f7f3ec;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  position: relative;
}
.rv-hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.88;
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
}
.rv-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

/* ─── Main Content ─── */
.rv-main {
  padding: 48px 0 72px;
  min-height: 50vh;
}
.rv-content {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 72ch;
}
.rv-content p { margin-bottom: 18px; }
.rv-content ul, .rv-content ol { margin: 14px 0 14px 28px; }
.rv-content li { margin-bottom: 8px; }
.rv-content img {
  border-radius: 4px;
  margin: 24px 0;
  box-shadow: 0 2px 10px rgba(14,21,32,0.06);
  transition: box-shadow 0.3s ease;
}
.rv-content img:hover { box-shadow: 0 10px 30px rgba(14,21,32,0.14); }
.rv-content a { color: #a8844b; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.rv-content a:hover { border-bottom-color: #a8844b; }
.rv-content blockquote {
  border-left: 4px solid #a8844b;
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(168, 132, 75, 0.08);
  border-radius: 0 2px 2px 0;
  font-style: italic;
  color: #6b6355;
}
.rv-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.rv-content th, .rv-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #dcd3c0;
}
.rv-content th {
  background: #efe8db;
  font-weight: 600;
  color: #12192a;
}
.rv-content tr:hover td { background: #ebe4d2; }

/* Page title with decorative line */
.rv-page-title {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.rv-page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #a8844b;
  border-radius: 2px;
}

/* ─── Breadcrumb ─── */
.rv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b6355;
  margin-bottom: 28px;
  padding: 12px 0;
}
.rv-breadcrumb a {
  color: #1a2332;
  font-weight: 500;
  transition: color 0.2s;
}
.rv-breadcrumb a:hover { color: #a8844b; }
.rv-breadcrumb-sep {
  color: #dcd3c0;
  font-size: 0.7rem;
}

/* ─── Cards (Homepage) ─── */
.rv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.rv-card {
  background: #fdfbf6;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 10px rgba(14,21,32,0.06);
  border: 1px solid #ebe4d2;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.rv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a2332, #a8844b);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rv-card:hover {
  box-shadow: 0 10px 30px rgba(14,21,32,0.14);
  transform: translateY(-3px);
}
.rv-card:hover::before { opacity: 1; }
.rv-card h3 {
  color: #12192a;
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.rv-card p {
  color: #6b6355;
  font-size: 0.95rem;
  margin: 0 0 18px;
  line-height: 1.6;
}

/* ─── CTA Buttons ─── */
.rv-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.rv-btn-primary {
  background: #a8844b;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(168, 132, 75, 0.08);
}
.rv-btn-primary:hover {
  background: #8f6e3c;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(168, 132, 75, 0.08);
  transform: translateY(-1px);
}
.rv-btn-outline {
  background: transparent;
  color: #1a2332 !important;
  border: 2px solid #dcd3c0;
}
.rv-btn-outline:hover {
  background: #efe8db;
  border-color: #1a2332;
}
.rv-card .rv-btn {
  font-size: 0.85rem;
  padding: 10px 22px;
}

/* ─── Section Alternating Backgrounds ─── */
.rv-section-alt {
  background: #efe8db;
  padding: 48px 0;
  margin: 48px 0;
  border-top: 1px solid #ebe4d2;
  border-bottom: 1px solid #ebe4d2;
}

/* ─── Related Pages ─── */
.rv-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid #dcd3c0;
}
.rv-related h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.rv-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.rv-related-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fdfbf6;
  border: 1px solid #ebe4d2;
  border-radius: 4px;
  color: #12192a;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.rv-related-grid a::before {
  content: '→';
  color: #a8844b;
  font-weight: 700;
  transition: transform 0.2s;
}
.rv-related-grid a:hover {
  border-color: #1a2332;
  box-shadow: 0 2px 12px rgba(168, 132, 75, 0.08);
  color: #1a2332;
}
.rv-related-grid a:hover::before { transform: translateX(3px); }

/* ─── Image Gallery ─── */
.rv-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.rv-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rv-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(14,21,32,0.14);
}

/* ─── Footer ─── */
.rv-footer {
  background: #0e1520;
  color: rgba(247,243,236,0.68);
  padding: 48px 0 0;
  position: relative;
}
.rv-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a2332, #a8844b, #1a2332);
}
.rv-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding-bottom: 36px;
}
.rv-footer h4 {
  color: #f7f3ec;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rv-footer a {
  color: rgba(247,243,236,0.68);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.rv-footer a:hover {
  color: #fff;
  padding-left: 4px;
}
.rv-footer p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 8px; }
.rv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Back to Top ─── */
.rv-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #1a2332;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
.rv-top-btn.visible { opacity: 1; pointer-events: auto; }
.rv-top-btn:hover {
  background: #a8844b;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ─── Article Content ─── */
.rv-content {
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto;
}
.rv-content h1 { font-size: 2rem; margin: 2rem 0 1rem; font-family: 'Cormorant Garamond', serif; color: #12192a; border-bottom: 2px solid #1a233220; padding-bottom: 0.5rem; }
.rv-content h2 { font-size: 1.6rem; margin: 1.8rem 0 0.8rem; font-family: 'Cormorant Garamond', serif; color: #12192a; }
.rv-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.6rem; font-family: 'Cormorant Garamond', serif; color: #12192a; }
.rv-content p { margin-bottom: 1.2rem; color: #302a22; }
.rv-content a { color: #1a2332; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.rv-content a:hover { color: #a8844b; }
.rv-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.5rem 0; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.rv-content blockquote {
  border-left: 4px solid #1a2332;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #1a233208;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #6b6355;
}
.rv-content ul, .rv-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.rv-content li { margin-bottom: 0.5rem; }
.rv-content li::marker { color: #1a2332; }
.rv-content iframe { max-width: 100%; border-radius: 4px; margin: 1.5rem 0; }
.rv-content hr { border: none; height: 1px; background: #dcd3c0; margin: 2rem 0; }
.rv-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: #12192a;
  margin-bottom: 1.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}
.rv-breadcrumb {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: 0.85rem;
  color: #6b6355;
}
.rv-breadcrumb a { color: #1a2332; text-decoration: none; }
.rv-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }

/* ─── 404 Page ─── */
.rv-404 {
  text-align: center;
  padding: 100px 0;
}
.rv-404 h1 {
  font-size: 6rem;
  color: #1a2332;
  margin-bottom: 12px;
  opacity: 0.15;
  border: none;
}
.rv-404 p {
  font-size: 1.2rem;
  color: #6b6355;
  margin-bottom: 32px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .rv-header-inner { min-height: 56px; }
  .rv-hamburger { display: block; }
  .rv-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a2332;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 8px 0;
    border-radius: 0 0 4px 4px;
  }
  .rv-nav.open { display: flex; }
  .rv-nav-item > a {
    padding: 12px 24px;
    text-align: left;
  }
  .rv-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    min-width: 0;
    background: rgba(0,0,0,0.03);
    border-radius: 0;
    padding: 0;
  }
  .rv-nav-item:hover .rv-dropdown { transform: none; }
  .rv-dropdown a {
    padding-left: 40px;
    color: rgba(247,243,236,0.92);
    font-size: 0.85rem;
  }
  .rv-dropdown a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding-left: 44px;
  }
  .rv-hero { padding: 48px 0; }
  .rv-main { padding: 32px 0 48px; }
  .rv-cards { grid-template-columns: 1fr; }
  .rv-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .rv-gallery { grid-template-columns: repeat(2, 1fr); }
  .rv-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .rv-footer-grid { grid-template-columns: 1fr; }
  .rv-gallery { grid-template-columns: 1fr; }
  .rv-header-inner { padding: 0 16px; }
  .rv-container, .rv-container-narrow { padding: 0 16px; }
}

/* ─── Print ─── */
@media print {
  .rv-header, .rv-footer, .rv-top-btn, .rv-hamburger { display: none; }
  .rv-main { padding: 0; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}




/* ─── Savile Row Tailoring — Signature touches ─── */

/* Subtle pinstripe backdrop on the page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: repeating-linear-gradient(90deg, #1a2332 0 1px, transparent 1px 6px);
}
.rv-main, .rv-header, .rv-footer { position: relative; z-index: 1; }

/* Editorial hero typography */
.rv-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
}
.rv-hero h1 em, .rv-hero h1 i { font-style: italic; font-weight: 400; }

/* Signature: thin gold rule between hero title and subtitle */
.rv-hero h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: #a8844b;
  margin: 20px auto 18px;
  opacity: 0.85;
}

/* Display serif headings */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.rv-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 2.2em;
  padding-bottom: 10px;
  border-bottom: 1px solid #dcd3c0;
}
.rv-content h3 {
  font-size: 1.4rem;
  color: #12192a;
}

/* Nav small-caps wordmark */
.rv-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
}
.rv-nav a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 500;
}
.rv-nav a:hover { color: #a8844b; }

/* Gold underline on content links */
.rv-content a {
  color: #12192a;
  text-decoration: underline;
  text-decoration-color: #a8844b;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-thickness 0.2s;
}
.rv-content a:hover {
  color: #a8844b;
  text-decoration-thickness: 2px;
}

/* Cards: crisp with a subtle gold top rule on hover */
.rv-card {
  border: 1px solid #dcd3c0;
  background: #fdfbf6;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.rv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #a8844b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.rv-card:hover { transform: translateY(-3px); border-color: #a8844b; }
.rv-card:hover::before { transform: scaleX(1); }

/* Drop cap on first paragraph of content */
.rv-content > p:first-of-type::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.8em;
  font-weight: 600;
  line-height: 0.82;
  margin: 4px 10px 0 0;
  color: #a8844b;
}

/* Editorial blockquote */
.rv-content blockquote {
  border-left: 2px solid #a8844b;
  background: transparent;
  padding: 6px 22px;
  margin: 28px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25em;
  color: #12192a;
  line-height: 1.45;
}

/* Footer: fine gold rule on top */
.rv-footer { border-top: 2px solid #a8844b; }
.rv-footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: #a8844b;
  margin: 0 auto 36px;
  opacity: 0.5;
}

/* Buttons: crisp, gold on navy */
.rv-btn, button, .rv-cta {
  border-radius: 2px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 14px 28px;
}
.rv-btn-primary, .rv-cta {
  background: #a8844b;
  color: #1a2332;
  border: 1px solid #a8844b;
}
.rv-btn-primary:hover, .rv-cta:hover {
  background: transparent;
  color: #a8844b;
}

/* Tags/eyebrows */
.rv-tag, .rv-badge, .rv-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #a8844b;
}
