/* ============================================
   RYNR MEDIA — Design System
   Display: General Sans | Body: Manrope
   ============================================ */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700,1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --teal: #05C1C3;
  --teal-dim: #049a9c;
  --near-black: #191000;
  --true-black: #000000;
  --cream: #FFFBF6;
  --orange: #FF8000;

  /* Functional tokens */
  --bg: var(--cream);
  --bg-dark: var(--near-black);
  --text: var(--near-black);
  --text-on-dark: var(--cream);
  --text-muted: #6b6255;
  --text-muted-on-dark: #b8afa0;
  --accent: var(--teal);
  --accent-warm: var(--orange);
  --line: rgba(25, 16, 0, 0.12);
  --line-on-dark: rgba(255, 251, 246, 0.14);

  --display: 'General Sans', 'Manrope', sans-serif;
  --body: 'Manrope', sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Every page except the homepage needs top padding to compensate for the
   header now being removed from normal flow (fixed/overlaid). The homepage
   hero image is meant to run flush to the very top of the screen, with the
   header floating transparently on top of it — so it's excluded below. */
body:not(.home) { padding-top: 84px; }

/* Homepage: the header floats directly over the hero photo, so nav text,
   the logo, and the hamburger lines need to read against a photo instead
   of the cream page background. White text with a soft shadow, plus a
   drop-shadow on the logo, keeps everything legible without needing a
   solid bar behind it. */
body.home .nav-links a { color: #FFFBF6; text-shadow: 0 1px 6px rgba(25,16,0,0.55); }
body.home .nav-links a::after { background: #FFFBF6; }
body.home .logo img { filter: drop-shadow(0 1px 4px rgba(25,16,0,0.5)); }
body.home .nav-toggle span { background: #FFFBF6; box-shadow: 0 1px 4px rgba(25,16,0,0.4); }


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-links a.is-active { color: var(--teal-dim); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--teal);
  color: var(--near-black);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--orange); color: var(--near-black); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  margin: 5px 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: var(--near-black);
}
.btn-primary:hover { background: var(--teal-dim); }

.btn-dark {
  background: var(--near-black);
  color: var(--cream);
}
.btn-dark:hover { background: #2a1c05; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  font-weight: 700;
}
.btn-ghost .arrow { transition: transform 0.2s ease; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-ghost-light { color: var(--cream); }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #F3ECDD;
  color: var(--near-black);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo img { height: 28px; }
.footer-brand p {
  margin-top: 18px;
  color: var(--text-muted);
  max-width: 32ch;
  font-size: 14.5px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--near-black);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--near-black); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--near-black);
  opacity: 0.82;
}
.footer-col a:hover { color: var(--teal-dim); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--teal-dim); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(25,16,0,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

/* ============================================
   MOBILE LAYOUT PASS
   Every page uses one-off inline grid-template-columns
   for its layouts (hero, about, service sections, portfolio
   galleries, etc). Rather than a blunt "stack everything"
   rule, each pattern below is tuned for what it actually
   contains, so image galleries and text+photo layouts
   behave sensibly instead of just collapsing to one column.
   ============================================ */

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Two-column "text beside photo" layouts (About, homepage
     About section, homepage portfolio mosaic) -> stack to one
     column so nothing gets cramped or overlaps. */
  [style*="grid-template-columns: 0.9fr 1.1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 2.1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Homepage services teaser (3 big content cards) -> stack,
     these carry real copy per card, not just thumbnails. */
  [style*="grid-template-columns: repeat(3, 1fr); gap: 32px"] {
    grid-template-columns: 1fr !important;
  }

  /* Services page: horizontal 3:2 photo/video rows (Real Estate,
     Airbnb sections) -> stack to one column. The vertical 2:3
     product row (already capped at max-width:520px) is excluded
     here since three narrow thumbnails side by side still reads
     fine at phone width. */
  [style*="grid-template-columns: 1fr 1fr 1fr"]:not([style*="max-width: 520px"]) {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  /* Portfolio galleries: 6 photos per section at repeat(3,1fr).
     Two columns keeps scroll length reasonable while still
     giving each photo a legible size, rather than a full
     six-row single column per section. */
  [style*="grid-template-columns: repeat(3, 1fr); gap: 16px"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .btn { padding: 13px 22px !important; font-size: 14px !important; }

  /* Homepage hero: the 16:9 crop is too short on phones to fit the
     headline, copy, and both buttons — they were overflowing past the
     photo's height and getting clipped by the container's overflow:hidden,
     which is why the "Contact to book" button was disappearing. A taller
     ratio gives everything room to actually fit inside the visible photo. */
  #home-hero > .reveal-scale { aspect-ratio: 3 / 4 !important; }
  .home-hero-content { padding: 0 24px !important; }
}


/* ============================================
   IMAGE PLACEHOLDER (temporary — swap for real photos)
   ============================================ */

.img-ph {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #cdf3f2 0%, #9fe6e3 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* Only these ratios are used anywhere on the site — matches what a camera/gimbal
   actually outputs, so real photos/video drop in without cropping. */
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-2-3  { aspect-ratio: 2 / 3; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-9-16 { aspect-ratio: 9 / 16; }

.img-ph::before {
  content: attr(data-label);
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--near-black);
  opacity: 0.4;
}
.img-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(5,193,195,0.10) 25%, transparent 25%, transparent 75%, rgba(5,193,195,0.10) 75%),
    linear-gradient(45deg, rgba(5,193,195,0.10) 25%, transparent 25%, transparent 75%, rgba(5,193,195,0.10) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  opacity: 0.6;
}

/* Framed/tilted photo treatment for creative collage moments */
.photo-frame {
  background: var(--cream);
  padding: 10px 10px 34px;
  box-shadow: 0 20px 50px -12px rgba(25,16,0,0.25);
  border-radius: 2px;
}
.photo-frame .img-ph { min-height: 0; }
.photo-frame figcaption {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
  padding-top: 10px;
  text-align: center;
}
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(3deg); }
.tilt-l:hover, .tilt-r:hover { transform: rotate(0deg); }
.photo-frame { transition: transform 0.35s ease; }

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Video embeds — same ratio discipline as photos. Use .video-16-9 for standard
   YouTube embeds, .video-9-16 for vertical reels. Drop an <iframe> straight inside. */
.video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--near-black);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-16-9 { aspect-ratio: 16 / 9; }
.video-9-16 { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }


/* ============================================
   CRO v1 (Oct 2026): trust strip, steps, reviews,
   quote form, landing-page helpers. Additive only.
   ============================================ */
.cro-hero-sub { color: rgba(255,251,246,0.9); font-size: clamp(15.5px, 1.5vw, 18px); max-width: 48ch; margin: 16px 0 0; line-height: 1.5; }
.cro-hero-proof { color: rgba(255,251,246,0.92); font-size: 13.5px; font-weight: 700; margin: 18px 0 0; letter-spacing: 0.01em; }
.cro-hero-proof .stars { color: var(--orange); letter-spacing: 2px; margin-right: 4px; }
.cro-trust { background: var(--near-black); color: var(--cream); }
.cro-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.cro-trust-grid > * { padding: 22px 18px; border-left: 1px solid var(--line-on-dark); display: block; }
.cro-trust-grid > *:first-child { border-left: 0; }
.cro-trust strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--teal); line-height: 1.15; }
.cro-trust span { display: block; font-size: 13px; color: var(--text-muted-on-dark); margin-top: 4px; }
.cro-section { padding: 80px 0; }
.cro-section h2 { font-size: clamp(26px, 3.4vw, 40px); }
.cro-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: crostep; }
.cro-steps li { counter-increment: crostep; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; background: var(--cream); }
.cro-steps li::before { content: counter(crostep, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--orange); margin-bottom: 10px; }
.cro-steps strong { display: block; font-size: 17px; margin-bottom: 6px; }
.cro-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.cro-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cro-reviews figure { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.cro-reviews .stars { color: var(--orange); letter-spacing: 2px; margin: 0 0 12px; }
.cro-reviews blockquote { margin: 0; font-size: 16px; line-height: 1.65; }
.cro-reviews figcaption { margin-top: 16px; font-weight: 700; font-size: 14px; }
.cro-cta-alt { margin: 18px 0 0; font-size: 14.5px; color: var(--near-black); opacity: 0.8; }
.cro-cta-alt a { text-decoration: underline; font-weight: 700; }
.cro-future { max-width: 46ch; margin: -14px auto 26px; font-size: 16px; color: var(--near-black); opacity: 0.85; }
.cro-price-line { font-size: 15px; font-weight: 700; margin: 0 auto 20px; color: var(--teal-dim); }
.cro-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 8px; }
.cro-fact { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cro-fact strong { display: block; font-size: 22px; line-height: 1.15; }
.cro-fact span { font-size: 13.5px; color: var(--text-muted); }
.cro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.cro-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.cro-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.cro-card p { margin: 0; font-size: 15px; line-height: 1.65; }
.cro-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 10px; }
.cro-strip picture { display: block; min-width: 0; }
.cro-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 6px; }
.cro-table th, .cro-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cro-table td:last-child, .cro-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
/* Quote form (contact page) */
.cro-form { background: linear-gradient(135deg,#FFF3E0 0%,var(--cream) 55%); border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px; margin-bottom: 36px; text-align: left; }
.cro-form h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.cro-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cro-form label { display: block; font-size: 13.5px; font-weight: 700; margin: 14px 0 6px; }
.cro-form label .opt { font-weight: 500; color: var(--text-muted); }
.cro-form input, .cro-form select, .cro-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--near-black); }
.cro-form textarea { min-height: 84px; resize: vertical; }
.cro-form input:focus, .cro-form select:focus, .cro-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.cro-form .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cro-form .actions .btn { border-radius: 100px; justify-content: center; }
.cro-form .actions .btn-ghost { border: 1.5px solid var(--near-black); padding: 14px 26px; border-radius: 100px; }
.cro-form .note { font-size: 13.5px; color: var(--text-muted); margin: 12px 0 0; }
.cro-form .err { color: #b3261e; font-size: 14px; font-weight: 700; margin: 12px 0 0; display: none; }
.cro-next { margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.cro-next ol { margin: 8px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.7; }
@media (max-width: 860px) {
  .cro-trust-grid { grid-template-columns: 1fr 1fr; }
  .cro-trust-grid > *:nth-child(3) { border-left: 0; }
  .cro-trust-grid > *:nth-child(n+3) { border-top: 1px solid var(--line-on-dark); }
  .cro-steps { grid-template-columns: 1fr; }
  .cro-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cro-grid, .cro-form .grid2 { grid-template-columns: 1fr; }
  .cro-strip { grid-template-columns: 1fr 1fr; }
  .cro-strip picture:last-child { display: none; }
  .cro-form { padding: 26px 18px; }
  .cro-form .actions .btn { flex: 1 1 100%; }
  .cro-section { padding: 60px 0; }
  .cro-hero-proof { font-size: 12.5px; }
  .home-hero-content { padding-top: 56px !important; }
  .cro-trust strong { font-size: 18px; }
  .cro-trust-grid > * { padding: 16px 12px; }
}
