/*
Theme Name: Relationship You Divi
Theme URI: https://relationshipyou.com/
Description: Relationship You design system and Divi child theme.
Author: Eastmoor Digital
Template: Divi
Version: 1.0.0
Text Domain: relationship-you
*/

:root {
  --ry-navy: #101c42;
  --ry-navy-deep: #081126;
  --ry-navy-soft: #1a2962;
  --ry-emerald: #087a5b;
  --ry-emerald-dark: #045640;
  --ry-gold: #b5a768;
  --ry-gold-light: #d5cfa7;
  --ry-bone: #f5f1e8;
  --ry-paper: #fcfaf6;
  --ry-ink: #172033;
  --ry-muted: #586174;
  --ry-line: rgba(16, 28, 66, .16);
  --ry-shadow: 0 24px 70px rgba(8, 17, 38, .16);
  --ry-radius-sm: 8px;
  --ry-radius: 18px;
  --ry-radius-lg: 34px;
  --ry-gutter: clamp(20px, 4vw, 64px);
  --ry-section: clamp(80px, 9vw, 144px);
  --ry-display: clamp(54px, 7vw, 112px);
  --ry-h1: clamp(48px, 6vw, 92px);
  --ry-h2: clamp(38px, 4.7vw, 72px);
  --ry-h3: clamp(24px, 2.4vw, 36px);
  --ry-body: clamp(17px, 1.1vw, 20px);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ry-ink);
  background: var(--ry-paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--ry-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: var(--ry-emerald-dark); }
a { color: var(--ry-emerald-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ry-gold);
  outline-offset: 4px;
}

#page-container { overflow: hidden; padding-top: 0 !important; }
#main-content { background: var(--ry-paper); }
.container, .et_pb_row { width: min(calc(100% - (var(--ry-gutter) * 2)), 1440px); max-width: 1440px; }
.et_pb_section { padding: var(--ry-section) 0; }
.et_pb_row { padding: 0; }
.et_pb_text_inner > *:last-child { margin-bottom: 0; }
.et_pb_text p, .et_pb_text li { color: inherit; font-size: inherit; line-height: inherit; }

h1, h2, h3, h4, h5, h6,
.ry-display, .ry-heading {
  color: var(--ry-navy);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
  padding: 0;
}
h1 { font-size: var(--ry-h1); }
h2 { font-size: var(--ry-h2); }
h3 { font-size: var(--ry-h3); line-height: 1.15; }

.ry-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--ry-emerald-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ry-kicker::before { content: ""; width: 38px; height: 2px; background: var(--ry-gold); }
.ry-lead { max-width: 62ch; color: #dfe6f5; font-size: clamp(19px, 1.5vw, 25px); line-height: 1.55; }
.ry-copy { max-width: 68ch; color: var(--ry-muted); }
.ry-copy strong { color: var(--ry-ink); }
.ry-note { color: var(--ry-muted); font-size: 14px; line-height: 1.55; }

/* Header */
#main-header {
  position: relative;
  top: auto !important;
  padding: 14px 0;
  background: rgba(252, 250, 246, .97);
  border-bottom: 1px solid var(--ry-line);
  box-shadow: none;
}
#main-header.et-fixed-header { box-shadow: 0 14px 45px rgba(8, 17, 38, .10) !important; }
#main-header .container { width: min(calc(100% - (var(--ry-gutter) * 2)), 1440px); }
#logo { max-height: 60px; }
#top-menu li { padding-right: 25px; }
#top-menu a {
  color: var(--ry-navy);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
}
#top-menu li.current-menu-item > a, #top-menu a:hover { color: var(--ry-emerald-dark); opacity: 1; }
#top-menu .ry-menu-cta { padding-right: 0; }
#top-menu .ry-menu-cta > a {
  min-height: 48px;
  padding: 15px 22px !important;
  color: #fff !important;
  background: var(--ry-emerald-dark);
  border-radius: 999px;
}
#top-menu .ry-menu-cta > a:hover { background: var(--ry-navy); }
.mobile_menu_bar::before { color: var(--ry-navy); }
.et_mobile_menu { border-top: 3px solid var(--ry-gold); }

/* Buttons */
.et_pb_button_module_wrapper { display: inline-block; margin: 0 12px 12px 0 !important; }
.et_pb_button.ry-button,
.ry-button.et_pb_button {
  min-height: 54px;
  padding: 15px 24px !important;
  color: #fff !important;
  background: var(--ry-emerald) !important;
  border: 1px solid var(--ry-emerald) !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  line-height: 1.4 !important;
  box-shadow: 0 12px 30px rgba(8, 122, 91, .22);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.et_pb_button.ry-button:hover { padding: 15px 24px !important; background: var(--ry-emerald-dark) !important; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(8, 122, 91, .28); }
.et_pb_button.ry-button::after { display: none; }
.et_pb_button.ry-button-secondary { color: var(--ry-navy) !important; background: transparent !important; border-color: rgba(16, 28, 66, .3) !important; box-shadow: none; }
.et_pb_button.ry-button-secondary:hover { color: #fff !important; background: var(--ry-navy) !important; }

/* Hero */
.ry-hero {
  position: relative;
  min-height: min(860px, calc(100svh - 90px));
  padding: clamp(76px, 8vw, 130px) 0;
  background: var(--ry-navy-deep);
}
.ry-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(26, 41, 98, .62), transparent 42%), linear-gradient(115deg, rgba(8, 17, 38, .2), rgba(8, 17, 38, .82));
}
.ry-hero .et_pb_row { display: flex; align-items: center; gap: clamp(42px, 6vw, 100px); }
.ry-hero h1 { max-width: 11ch; color: #fff; font-size: var(--ry-display); }
.ry-hero .ry-kicker { color: var(--ry-gold-light); }
.ry-hero .ry-copy { color: #dfe6f5; }
.ry-hero-art .et_pb_image_wrap {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(213, 207, 167, .28);
  border-radius: var(--ry-radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .42);
}
.ry-hero-art img { width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; object-position: 68% center; }
.ry-hero-art::after {
  content: "01 — THE THRESHOLD";
  display: block;
  margin: 15px 0 0 12px;
  color: var(--ry-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

/* Narrative scenes */
.ry-scene { position: relative; }
.ry-bone { background: var(--ry-bone); }
.ry-paper { background: var(--ry-paper); }
.ry-navy { color: #f7f4ec; background: var(--ry-navy); }
.ry-navy h2, .ry-navy h3 { color: #fff; }
.ry-navy .ry-kicker { color: var(--ry-gold-light); }
.ry-navy .ry-copy { color: #dbe2f0; }
.ry-intro-row { max-width: 1020px; margin-left: 0; }
.ry-intro-row h2 { max-width: 16ch; }

.ry-signal-grid, .ry-service-grid, .ry-step-grid { margin-top: clamp(46px, 6vw, 84px); }
.ry-card {
  height: 100%;
  padding: clamp(28px, 3vw, 46px);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--ry-line);
  border-radius: var(--ry-radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.ry-card .ry-index {
  display: block;
  margin-bottom: 42px;
  color: var(--ry-emerald-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.ry-card h3 { margin-bottom: 16px; }
.ry-card p { color: var(--ry-muted); font-size: 16px; }

.ry-editorial-row { display: flex; align-items: center; gap: clamp(48px, 7vw, 112px); }
.ry-editorial-image .et_pb_image_wrap { display: block; overflow: hidden; border-radius: var(--ry-radius-lg); box-shadow: var(--ry-shadow); }
.ry-editorial-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ry-editorial-image::after {
  content: "CONNECTION WITHOUT SELF-ABANDONMENT";
  display: block;
  margin-top: 14px;
  color: var(--ry-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.ry-editorial-copy h2 { max-width: 12ch; margin-bottom: 28px; }

.ry-step {
  padding: 26px 0 30px;
  border-top: 1px solid rgba(213, 207, 167, .42);
}
.ry-step span { color: var(--ry-gold-light); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.ry-step h3 { margin: 12px 0; }
.ry-step p { color: #dbe2f0; font-size: 16px; }

.ry-service-card {
  position: relative;
  min-height: 430px;
  padding: clamp(30px, 3.2vw, 48px);
  background: var(--ry-paper);
  border: 1px solid var(--ry-line);
  border-radius: var(--ry-radius-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ry-service-card:hover { transform: translateY(-7px); box-shadow: var(--ry-shadow); }
.ry-service-card .ry-index { color: var(--ry-gold); font-weight: 900; letter-spacing: .15em; }
.ry-service-card h3 { margin: 70px 0 20px; }
.ry-service-card p { color: var(--ry-muted); font-size: 16px; }
.ry-service-card a { position: absolute; left: clamp(30px, 3.2vw, 48px); bottom: 38px; color: var(--ry-emerald-dark); font-size: 14px; font-weight: 850; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.ry-proof-row { display: grid !important; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1px; overflow: hidden; background: rgba(213,207,167,.3); border: 1px solid rgba(213,207,167,.3); border-radius: var(--ry-radius); }
.ry-proof-row > .et_pb_column { width: auto !important; margin: 0 !important; padding: 30px; background: var(--ry-navy-deep); }
.ry-proof-row .et_pb_text { margin: 0 !important; }
.ry-proof-row strong { display: block; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: 28px; font-weight: 400; }
.ry-proof-row span { display: block; margin-top: 7px; color: #cfd7e8; font-size: 13px; line-height: 1.45; }

.ry-quote {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.ry-quote blockquote { margin: 0; padding: 0; border: 0; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(38px, 5vw, 78px); letter-spacing: -.035em; line-height: 1.08; }
.ry-quote p { margin-top: 28px; color: var(--ry-gold-light); font-size: 13px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }

.ry-faq-item { padding: 26px 0; border-top: 1px solid var(--ry-line); }
.ry-faq-item h3 { margin-bottom: 12px; font-size: clamp(23px, 2vw, 30px); }
.ry-faq-item p { max-width: 68ch; color: var(--ry-muted); font-size: 16px; }

.ry-closing { text-align: center; background: var(--ry-bone); }
.ry-closing .et_pb_row { max-width: 980px; }
.ry-closing h2 { margin-bottom: 24px; }
.ry-closing .ry-copy { margin: 0 auto 34px; }

/* Custom footer */
#main-footer { display: none; }
.ry-footer { padding: 70px var(--ry-gutter) 28px; color: #dbe2f0; background: var(--ry-navy-deep); }
.ry-footer__inner { width: min(100%, 1440px); margin: 0 auto; }
.ry-footer__top { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(40px, 6vw, 100px); padding-bottom: 56px; }
.ry-footer img { width: min(100%, 410px); height: auto; padding: 12px; background: #fff; border-radius: 8px; }
.ry-footer h2 { margin-bottom: 14px; color: #fff; font-size: 30px; }
.ry-footer p, .ry-footer address { color: #cfd7e8; font-size: 14px; font-style: normal; line-height: 1.8; }
.ry-footer nav a { display: block; min-height: 44px; padding: 10px 0; color: #fff; font-size: 14px; font-weight: 750; }
.ry-footer a:hover { color: var(--ry-gold-light); }
.ry-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.ry-footer__bottom p { margin: 0; font-size: 12px; }

@media (max-width: 980px) {
  #main-header { padding: 8px 0; }
  #logo { max-height: 50px; }
  .ry-hero { min-height: auto; }
  .ry-hero .et_pb_row, .ry-editorial-row { display: block; }
  .ry-hero .et_pb_column, .ry-editorial-row .et_pb_column { width: 100% !important; margin-right: 0 !important; }
  .ry-hero-art { margin-top: 48px; }
  .ry-hero-art img { aspect-ratio: 16 / 10; }
  .ry-editorial-image { margin-bottom: 48px; }
  .ry-proof-row { grid-template-columns: 1fr 1fr; }
  .ry-footer__top { grid-template-columns: 1fr 1fr; }
  .ry-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --ry-gutter: 22px; --ry-section: 78px; }
  .et_pb_section { padding: var(--ry-section) 0; }
  .ry-hero { padding: 68px 0 78px; }
  .ry-hero h1 { max-width: none; font-size: clamp(48px, 14vw, 66px); }
  .ry-lead { font-size: 19px; }
  .ry-hero-art img { min-height: 300px; aspect-ratio: 1 / 1; object-position: 72% center; }
  .ry-card, .ry-service-card { min-height: auto; margin-bottom: 18px; padding: 28px; }
  .ry-card .ry-index { margin-bottom: 28px; }
  .ry-service-card h3 { margin-top: 44px; }
  .ry-service-card a { position: static; display: inline-block; margin-top: 28px; }
  .ry-proof-row { grid-template-columns: 1fr; }
  .ry-proof-row > .et_pb_column { padding: 26px; }
  .ry-footer { padding-top: 56px; }
  .ry-footer__top { grid-template-columns: 1fr; }
  .ry-footer__brand { grid-column: auto; }
  .ry-footer__bottom { display: block; }
  .ry-footer__bottom p + p { margin-top: 12px; }
}

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

