/* ============================================================
   Ryan Owen Photography — Site Stylesheet
   Matches Squarespace look and feel for static rebuild
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #555555;
  --color-light: #888888;
  --color-accent: #727272;
  --color-border: rgba(0,0,0,0.08);
  --color-border-mid: rgba(0,0,0,0.12);
  --max-width: 1200px;
  --section-pad: 80px 24px;
  --section-pad-sm: 48px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-nav a {
  text-decoration: none;
  color: #111;
  white-space: nowrap;
}

.site-nav a:hover { text-decoration: underline; }

.site-nav a.active { font-weight: 600; }

.phone-link { font-weight: 600; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-mid);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .brand-logo { height: 28px; }
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    background: #fff;
    border: 1px solid var(--color-border-mid);
    border-radius: 12px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 200;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 9px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a:last-child { border-bottom: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  background: #1a1a1a center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-tall {
  min-height: 680px;
  align-items: flex-start;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 40px;
  max-width: 760px;
  color: #111;
}

.hero-content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 12px;
  color: #111;
  text-shadow: none;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  margin-bottom: 24px;
  color: #222;
  text-shadow: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: #555; }

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-text);
}

.btn-white:hover { background: #eee; color: var(--color-text); }

/* ============================================================
   PAGE HERO (inner pages — text only, no image)
   ============================================================ */

.page-hero {
  padding: 56px 24px 40px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 640px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: var(--section-pad);
}

.section-sm {
  padding: var(--section-pad-sm);
}

.section-gray {
  background: #f8f8f8;
}

.section-dark {
  background: #111;
  color: #fff;
}

.section-dark .section-label { color: rgba(255,255,255,0.5); }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* About teaser */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-teaser-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-teaser-text p {
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-teaser-img img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}

/* Services preview strip */
.services-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  border: 1px solid var(--color-border);
  padding: 0;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.service-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 20px 22px 24px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Video CTA band */
.video-band {
  display: flex;
  align-items: center;
  gap: 48px;
}

.video-band-text { flex: 1; }

.video-band-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.video-band-text p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  line-height: 1.75;
}

.video-band-cta { flex-shrink: 0; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-intro {
  max-width: 700px;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 48px;
}

.services-category {
  margin-bottom: 64px;
}

.services-category-heading {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.svc-card {
  border: 1px solid var(--color-border);
  padding: 32px 28px;
  background: #fff;
}

.svc-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.svc-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.75;
}

.svc-card .svc-note {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-light);
  font-style: italic;
}

.svc-card .svc-sample-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.svc-card .svc-sample-link:hover { text-decoration: underline; }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--color-border-mid);
  background: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, border-color 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e0e0e0;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: var(--color-light);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   STOCK PAGE
   ============================================================ */

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.stock-card {
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: block;
  transition: box-shadow 0.2s;
}

.stock-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.stock-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e0e0e0;
}

.stock-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.stock-card:hover .stock-card-img img { transform: scale(1.04); }

.stock-card-label {
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}

.about-sidebar img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  margin-bottom: 24px;
}

.about-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-body p {
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-body strong { color: var(--color-text); }

.detail-list {
  list-style: none;
  margin: 24px 0;
}

.detail-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}

.detail-list li:last-child { border-bottom: none; }

.detail-label {
  font-weight: 600;
  min-width: 120px;
  color: var(--color-text);
}

.detail-value { color: var(--color-muted); }

/* Service area tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 14px;
  background: #f3f3f3;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--color-border);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.contact-detail-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--color-text);
}

.contact-detail a {
  color: var(--color-muted);
  text-decoration: none;
}

.contact-detail a:hover { text-decoration: underline; }

.contact-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-link {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--color-border-mid);
  font-size: 13px;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.social-link:hover { background: #f3f3f3; }

.contact-form-wrap { /* right column — request CTA */ }

.request-cta-box {
  background: #f8f8f8;
  border: 1px solid var(--color-border);
  padding: 36px 32px;
}

.request-cta-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.request-cta-box p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================================
   TERMS PAGE
   ============================================================ */

.terms-body {
  max-width: 780px;
  margin: 0 auto;
}

.terms-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 36px 0 12px;
  color: var(--color-text);
}

.terms-body h2:first-child { margin-top: 0; }

.terms-body p {
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.terms-body strong {
  color: var(--color-text);
}

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

.site-footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-brand .brand-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-contact p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-contact a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  text-align: center;
  padding: 72px 24px;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  :root { --section-pad: 56px 20px; }

  .about-teaser,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-sidebar img { height: 300px; }
  .about-teaser-img img { max-height: 260px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .video-band { flex-direction: column; gap: 28px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 40px 16px; }

  .hero { min-height: 380px; }
  .hero-tall { min-height: 460px; }
  .hero-content { padding: 32px 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .contact-layout { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
