/* Ryan Cortland — signature color: Apple Ruby, with champagne gold */

:root {
  --apple: #C8102E;
  --apple-deep: #8E0C22;
  --apple-hot: #E8354A;
  --apple-soft: #F8D6D9;
  --gold: #D4AF37;
  --gold-bright: #F3E1A0;
  --gold-deep: #A67C1A;
  --champagne: #F6E6C4;
  --ivory: #FFF8F0;
  --cream: #FBF1E6;
  --blush: #FBECEA;
  --ink: #3A1A1C;
  --ink-soft: #6B3A3C;
  --wine: #5C1220;
  --leaf: #3E7A44;
  --card: #FFFCF7;
  --line: rgba(166, 124, 26, 0.28);
  --shadow: 0 18px 40px rgba(92, 18, 32, 0.12);
  --radius: 22px;
  --header-h: 76px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(200, 16, 46, 0.10), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(212, 175, 55, 0.16), transparent 50%),
    var(--ivory);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--apple-deep); }
a:hover { color: var(--apple); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--wine); }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--apple); color: var(--ivory);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }
.skip:focus-visible { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img { image-rendering: auto; }
.hero-frame img,
.about-photos img,
.project-media img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* ----- header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 248, 240, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(92, 18, 32, 0.06);
  background: rgba(255, 248, 240, 0.92);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(var(--max), calc(100% - 32px));
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--wine);
  font-weight: 700; letter-spacing: 0.08em;
  font-size: 0.82rem; text-transform: uppercase;
}
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo:hover { color: var(--apple-deep); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
}
.nav a:hover, .nav a:focus-visible { color: var(--wine); background: rgba(200, 16, 46, 0.08); }
.nav a[aria-current="true"] {
  color: var(--wine);
  background: rgba(200, 16, 46, 0.10);
  box-shadow: inset 0 -2px 0 var(--apple);
}
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  cursor: pointer; color: var(--wine);
  min-width: 44px; min-height: 44px;
  border-radius: 12px;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(200, 16, 46, 0.08); }
.nav-toggle-bars {
  display: block; width: 22px; height: 2px; margin: 0 auto;
  background: currentColor; border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 40;
  background: rgba(92, 18, 32, 0.28);
  border: 0; padding: 0; cursor: pointer;
}
body.nav-open .nav-backdrop { display: block; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #FFF8F0;
  background: linear-gradient(180deg, #F04A5A 0%, #C8102E 48%, #8E0C22 100%);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { color: #FFF8F0; box-shadow: 0 14px 28px rgba(200, 16, 46, 0.4), inset 0 1px 0 rgba(255,255,255,0.5); transform: translateY(-1px); }
.btn-gold {
  color: var(--wine);
  background: linear-gradient(180deg, #FFF3C4 0%, #E4C56A 45%, #C9A227 100%);
  box-shadow: 0 10px 22px rgba(166, 124, 26, 0.25), inset 0 1px 0 rgba(255,255,255,0.65);
}
.btn-gold:hover { color: var(--wine); transform: translateY(-1px); }
.btn-ghost {
  color: var(--wine);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.12); color: var(--wine); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--apple-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 18px;
  background: url("favicon.svg") center / contain no-repeat;
}

/* ----- hero ----- */
.hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--wine);
  margin: 0 0 8px;
}
.hero h1 span { display: block; }
.gold-rule {
  width: 88px; height: 4px; border-radius: 4px; margin: 16px 0 22px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--gold-deep));
  box-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 34ch;
}
.tagline { font-size: 1.02rem; color: var(--ink); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 32px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(166,124,26,0.2), 0 0 0 8px rgba(212,175,55,0.18);
}
.hero-apples {
  position: absolute;
  right: -6%;
  bottom: -4%;
  width: 34%;
  max-width: 180px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(58,26,28,0.2), 0 0 0 5px var(--ivory);
  object-fit: cover;
  object-position: 65% 60%;
  aspect-ratio: 1 / 1;
  z-index: 2;
  transform: rotate(-6deg);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; z-index: 0;
}
.orb-a { width: 220px; height: 220px; background: rgba(200,16,46,0.16); top: -40px; right: 8%; }
.orb-b { width: 180px; height: 180px; background: rgba(212,175,55,0.22); bottom: 10%; left: -40px; }

/* ----- sections ----- */
section { padding: 80px 0; position: relative; }
section[id], #home { scroll-margin-top: calc(var(--header-h) + 12px); }
.section-head { margin-bottom: 36px; max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

#about { background: linear-gradient(180deg, transparent, rgba(251, 236, 234, 0.7) 12%, rgba(251, 236, 234, 0.7) 88%, transparent); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-copy p { font-size: 1.06rem; }
.quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--wine);
  line-height: 1.4;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.interests { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.interests li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(92,18,32,0.05);
}
.about-photos { position: relative; min-height: 420px; }
.about-photos .shot-main {
  width: 78%;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow), 0 0 0 1px rgba(166,124,26,0.18);
}
.about-photos .shot-smile {
  position: absolute;
  width: 44%;
  right: 0; bottom: 6%;
  border-radius: 22px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: 0 16px 32px rgba(58,26,28,0.2), 0 0 0 5px var(--ivory);
  transform: rotate(3deg);
}

/* ----- services ----- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  box-shadow: 0 10px 28px rgba(92,18,32,0.06);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  overflow: hidden;
}
.service-card h3 { font-size: 1.45rem; margin: 0; }
.price {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--wine);
  letter-spacing: -0.03em;
}
.price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.service-card p { color: var(--ink-soft); flex: 1; }
.service-card .btn { margin-top: 8px; width: 100%; }
.service-card.featured {
  background:
    linear-gradient(180deg, rgba(255,243,196,0.45), var(--card) 40%),
    var(--card);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(166,124,26,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(-6px);
}
.ribbon {
  position: absolute; top: 16px; right: -36px;
  background: linear-gradient(180deg, #F04A5A, #8E0C22);
  color: #FFF8F0;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 40px;
  transform: rotate(32deg);
  box-shadow: 0 6px 14px rgba(142,12,34,0.25);
}

/* ----- projects ----- */
#projects .section-head { margin-bottom: 28px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(92,18,32,0.07);
  display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(92,18,32,0.12); }
.project-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.project-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--blush); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-body h3 { font-size: 1.15rem; margin: 0; }
.project-sub { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--apple-deep); margin: 0; }
.project-body p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 8px 0 0; margin: 0; }
.tags li {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(200,16,46,0.08); color: var(--wine);
}
.project-go {
  display: block; padding: 0 16px 16px;
  font-size: 0.82rem; font-weight: 600; color: var(--apple-deep);
}
.project-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, var(--champagne), var(--apple-soft)); }

/* ----- contact ----- */
#contact { padding-bottom: 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--wine); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: #FFFCF8;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
}
.field textarea { min-height: 140px; resize: vertical; }
.mail-note { font-size: 0.92rem; color: var(--ink-soft); }
.mail-note a { font-weight: 600; }

/* ----- footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(246, 230, 196, 0.35));
}
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.92rem; color: var(--ink-soft);
}
.site-footer strong { color: var(--wine); }

/* ----- responsive ----- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-frame { justify-self: center; width: min(100%, 420px); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { transform: none; }
  .about-photos { min-height: 0; max-width: 420px; }
  section { padding: 64px 0; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: rgba(255,248,240,0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 16px 16px;
    box-shadow: 0 16px 30px rgba(92,18,32,0.08);
    z-index: 51;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; min-height: 44px; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
  .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 20px 0 48px; }
  section { padding: 48px 0; }
  #contact { padding-bottom: 64px; }
  .section-head { margin-bottom: 24px; }
  .contact-card { padding: 20px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 3.5rem); }
  .lede { font-size: 1.12rem; }
  .tagline { font-size: 0.98rem; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-apples { width: 30%; max-width: 120px; bottom: -2%; right: -2%; }
  .wrap, .site-header .wrap { width: min(var(--max), calc(100% - 24px)); }
  .about-photos .shot-main { width: 86%; }
  .about-photos .shot-smile { width: 46%; }
  .service-card { padding: 22px 18px 20px; }
  .price { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
