/* ==========================================================================
   Rndlph Creatives — Design System
   ========================================================================== */

:root {
  --ivory: #faf7f1;
  --ivory-deep: #f2ece1;
  --charcoal: #1c1a17;
  --charcoal-soft: #2b2723;
  --gold: #b08d57;
  --gold-soft: #cdae7d;
  --line: rgba(28, 26, 23, 0.12);
  --line-light: rgba(250, 247, 241, 0.25);

  --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p, .lede, .btn, .text-link { overflow-wrap: break-word; word-wrap: break-word; }

h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: 0.3px; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 0.9em;
  font-weight: 500;
}

.lede {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal-soft);
  max-width: 46ch;
}

.lede--center { max-width: 60ch; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.8em 1.2em;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95em 2.2em;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}

.btn-primary { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn-primary:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }

.btn-outline { background: transparent; color: var(--ivory); border-color: var(--line-light); }
.btn-outline:hover { background: var(--line-light); border-color: var(--ivory); }

.btn-dark { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn-dark:hover { background: transparent; color: var(--charcoal); }

.btn-block { width: 100%; text-align: center; border: none; }

.text-link {
  display: inline-block;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover { color: var(--gold); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-head { max-width: 46ch; margin-bottom: 3.2rem; }
.section-head--center { max-width: 60ch; margin-left: auto; margin-right: auto; text-align: center; }
.section-cta { text-align: center; margin-top: 3.2rem; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
  transition: color 0.4s var(--ease);
}
.site-header.is-scrolled .brand { color: var(--charcoal); }

.brand-mark { width: 38px; height: 38px; color: currentColor; }
.brand-word {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand-word em { font-style: normal; color: var(--gold); font-weight: 400; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.85rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s var(--ease);
}
.site-header.is-scrolled .main-nav a { color: var(--charcoal); }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.main-nav a.nav-cta {
  border: 1px solid currentColor;
  padding: 0.6em 1.3em;
}
.main-nav a.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: -7px -7px -7px 0;
  z-index: 101;
  flex-shrink: 0;
}
.nav-toggle span { width: 26px; }
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ivory);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--charcoal); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { background: var(--ivory); }
.site-header.is-scrolled .nav-toggle[aria-expanded="true"] span { background: var(--charcoal); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.35) 45%, rgba(20,18,16,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-logo { width: min(320px, 60vw); height: auto; color: var(--ivory); margin-bottom: 1.6rem; opacity: 0.95; }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  margin-bottom: 0.4em;
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(250,247,241,0.92);
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1px solid rgba(250,247,241,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--ivory);
  border-radius: 50%;
  animation: scrollCue 1.8s infinite var(--ease);
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(5rem, 10vw, 9rem) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.about-media-frame {
  position: absolute;
  top: 18px; left: 18px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}

.about-copy h2 { max-width: 12ch; }
.about-copy .lede { margin-bottom: 0.8em; }
.about-copy p:not(.lede) { color: var(--charcoal-soft); max-width: 56ch; }

/* ==========================================================================
   Portfolio / Story Grid
   ========================================================================== */
.portfolio { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ivory-deep); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1.6rem;
}

.story-card {
  position: relative;
  overflow: hidden;
  grid-row: span 1;
}
.story-card--tall { grid-row: span 2; }

.story-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.story-card:hover img { transform: scale(1.06); }

.story-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0) 45%, rgba(20,18,16,0.85) 100%);
  pointer-events: none;
}

.story-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem;
  color: var(--ivory);
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.story-card:hover .story-info { transform: translateY(0); }

.story-info h3 { color: var(--ivory); margin-bottom: 0.15em; font-size: 1.3rem; }
.story-loc { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.4em; }
.story-desc {
  font-size: 0.9rem;
  color: rgba(250,247,241,0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease);
}
.story-card:hover .story-desc { max-height: 3.5em; opacity: 1; }

/* Touch devices have no hover state — show the description by default
   instead of hiding it behind an interaction that can't happen. */
@media (hover: none) {
  .story-info { transform: translateY(0); }
  .story-desc { max-height: 3.5em; opacity: 1; }
}

/* ==========================================================================
   Photography Style
   ========================================================================== */
.style { padding: clamp(5rem, 10vw, 9rem) 0; }

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.style-card {
  background: var(--ivory);
  padding: 3rem 2.2rem;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.style-card:hover { background: var(--ivory-deep); transform: translateY(-4px); }

.style-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.style-card h3 { margin-bottom: 0.5em; }
.style-card p { color: var(--charcoal-soft); margin: 0; font-size: 0.98rem; }

/* ==========================================================================
   Packages
   ========================================================================== */
.packages { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--charcoal); color: var(--ivory); }
.packages .eyebrow { color: var(--gold-soft); }
.packages h2 { color: var(--ivory); }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 2.5rem;
}

.package-card {
  border-top: 1px solid var(--line-light);
  padding-top: 1.4rem;
}
.package-card h3 { color: var(--ivory); font-size: 1.25rem; }
.package-card p { color: rgba(250,247,241,0.72); margin: 0; font-size: 0.95rem; }

.packages .btn-dark { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.packages .btn-dark:hover { background: transparent; color: var(--ivory); }

/* ==========================================================================
   Image Break
   ========================================================================== */
.image-break {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-break img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.image-break-overlay { position: absolute; inset: 0; background: rgba(20,18,16,0.45); }
.image-break-quote {
  position: relative;
  z-index: 2;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  text-align: center;
  max-width: 20ch;
  margin: 0;
  padding: 0 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: clamp(5rem, 10vw, 9rem) 0; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  margin: 0;
  padding: 2.4rem;
  background: var(--ivory-deep);
  border-left: 2px solid var(--gold);
}
.testimonial-card p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--charcoal-soft);
  margin-bottom: 1.2em;
}
.testimonial-card footer { font-size: 0.85rem; letter-spacing: 0.5px; font-weight: 500; }
.testimonial-card footer span { font-weight: 300; color: var(--gold); font-style: normal; }

/* ==========================================================================
   Photographer
   ========================================================================== */
.photographer { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ivory-deep); }

.photographer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.photographer-copy h2 { max-width: none; }
.photographer-copy p:not(.lede) { color: var(--charcoal-soft); max-width: 58ch; }

.photographer-media { margin: 0; order: 2; }
.photographer-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(5rem, 10vw, 9rem) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h2 { max-width: none; }

.contact-details { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.contact-details li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35em;
}
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--gold); }

.contact-form {
  background: var(--ivory-deep);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.5em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.6em 0.1em;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-status { margin: 1rem 0 0; font-size: 0.9rem; min-height: 1.2em; color: var(--gold); }
.form-status.is-error { color: #a4453a; }
.form-status.is-success { color: #4a7a5f; }

.form-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.field-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.78rem;
  color: #a4453a;
  margin-top: 0.35em;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #a4453a;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn .btn-label { display: inline-flex; align-items: center; gap: 0.6em; }

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); color: var(--ivory); padding: 4rem 0 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}

.brand--footer { color: var(--ivory); }

.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a, .footer-social a {
  color: rgba(250,247,241,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover, .footer-social a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 1.5rem; }

.footer-bottom {
  padding: 1.6rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250,247,241,0.5);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet / small desktop: the 7-item inline nav no longer fits comfortably
   alongside the wordmark below ~1120px, so hand off to the hamburger menu
   earlier than the content-grid breakpoints below. */
@media (max-width: 1120px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 2rem; padding: 2rem 0; }
  .main-nav a { color: var(--ivory); font-size: 1.15rem; padding: 0.4em 0; }

  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .about-grid,
  .photographer-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .photographer-media { order: -1; }
  .photographer-media img { aspect-ratio: 16 / 10; }

  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }

  /* The offset frame only has room to breathe in the two-column desktop
     layout; once .about-media is full-width it pushes past the viewport. */
  .about-media-frame { display: none; }
}

@media (max-width: 760px) {
  .about,
  .portfolio,
  .style,
  .packages,
  .testimonials,
  .photographer,
  .contact { padding-top: 3.75rem; padding-bottom: 3.75rem; }

  .story-grid { grid-template-columns: 1fr; grid-auto-rows: 340px; }
  .story-card--tall { grid-row: span 1; }
  .style-grid { grid-template-columns: 1fr; }
  .style-card { padding: 2.2rem 1.6rem; }
  .package-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
  .hero-actions .btn { text-align: center; }

  h2 { letter-spacing: 0.2px; }
  .section-head { margin-bottom: 2.4rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 460px; }
  .hero-content { padding-top: 64px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 0.3em; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.4rem; }
  .hero-logo { width: min(180px, 50vw); margin-bottom: 0.9rem; }
  .hero-actions { gap: 0.7rem; }
  .brand-word { font-size: 1rem; }
  .lede { font-size: 1.15rem; }
  .image-break-quote { font-size: clamp(1.25rem, 6vw, 1.8rem); }
}
