/* ─────────────────────────────────────────────────
   Cliff Bull Studio — Modern Site Styles
   ───────────────────────────────────────────────── */

/* === Custom Properties === */
:root {
  --bg:          #faf8f5;
  --surface:     #f0ebe3;
  --surface2:    #e8e0d5;
  --text:        #2c2a27;
  --text-muted:  #6b6560;
  --accent:      #c17a52;
  --accent-dark: #9d5e38;
  --accent-light:#e8c4a8;
  --border:      #ddd6cc;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(44,42,39,.08);
  --shadow-md:   0 6px 24px rgba(44,42,39,.14);
  --shadow-lg:   0 16px 48px rgba(44,42,39,.18);
  --radius:      6px;
  --radius-lg:   12px;
  --nav-h:       70px;
  --transition:  0.3s ease;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* === Layout Utilities === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--surface); }
.text-center { text-align: center; }
.divider {
  width: 60px; height: 3px;
  background: var(--accent);
  margin: 1rem auto 2rem;
  border-radius: 2px;
}
.divider--left { margin-left: 0; }

/* === Fade-in Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Header / Nav === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(250,248,245,0.97);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--accent); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--accent-dark); color: var(--white) !important; transform: translateY(-1px); }

/* Email icon (SVG mask inherits currentColor) */
.icon-mail {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m2 7 10 7 10-7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m2 7 10 7 10-7'/></svg>") center / contain no-repeat;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}
.nav__mobile a:last-child { border: none; }

/* === Page Top Spacer === */
.page-top { height: var(--nav-h); }

/* === Hero (Index) === */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.hero__content {
  padding: 5rem 3rem 5rem 0;
  max-width: 560px;
  justify-self: end;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.2rem;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__image {
  height: 100%;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}
.hero__image:hover img { transform: scale(1.03); }
.hero__image-caption {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(44,42,39,.65);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.85);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 600px; margin: 0.75rem auto 0; font-size: 1.05rem; }

/* === Gallery Preview (Home) === */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.preview-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
  cursor: pointer;
}
.preview-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.preview-card:hover img { transform: scale(1.06); }
.preview-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,22,15,.78) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.preview-card:hover .preview-card__overlay { opacity: 1; }
.preview-card__info { color: var(--white); }
.preview-card__title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.preview-card__size { font-size: 0.75rem; opacity: 0.8; }

/* Home preview - show first 8 */
.preview-grid .preview-card:nth-child(n+9) { display: none; }

/* === Gallery Page === */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(30,22,15,.8) 0%, transparent 100%);
  color: var(--white);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item__title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
}
.gallery-item__size {
  font-size: 0.72rem;
  opacity: 0.82;
  display: block;
}
.gallery-item[data-cat].hidden { display: none; }

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20,16,12,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox__inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox__img {
  max-height: 80svh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: lbFadeIn 0.3s ease;
}
@keyframes lbFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.lightbox__info { text-align: center; color: rgba(255,255,255,.85); }
.lightbox__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  display: block;
}
.lightbox__size { font-size: 0.8rem; opacity: 0.65; }
.lightbox__close {
  position: absolute;
  top: -3rem; right: 0;
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition);
}
.lightbox__close:hover { color: var(--white); }
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* === About Page === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-grid--reverse { direction: rtl; }
.about-grid--reverse > * { direction: ltr; }
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-text .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.about-text h2 { margin-bottom: 0.5rem; }
.about-text p { font-size: 1rem; line-height: 1.8; }
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* === Commission Page === */
.commission-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.commission-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.commission-img img { width: 100%; height: auto; object-fit: cover; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}
.pricing-card.featured h4,
.pricing-card.featured p { color: var(--white); }
.pricing-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.pricing-card .price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--text); display: block; }
.pricing-card.featured .price { color: var(--white); }
.pricing-card p { font-size: 0.85rem; margin-top: 0.5rem; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.tip-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}
.tip-card__icon svg {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.tip-card h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.tip-card p { font-size: 0.9rem; margin: 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}
.process-step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  counter-increment: steps;
}
.process-step::before {
  content: counter(steps);
  position: absolute;
  top: -18px; left: 1.5rem;
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* === Styles Section (Index) === */
.styles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.style-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.style-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.style-card__label {
  padding: 1rem 1.1rem 1.25rem;
  color: var(--text);
}
.style-card__label h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: .25rem; }
.style-card__label p { font-size: 0.85rem; margin: 0; color: var(--text-muted); }

/* === CTA Band === */
.cta-band {
  background: var(--text);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,.65); max-width: 540px; margin: 0 auto 2.25rem; font-size: 1.05rem; }
.cta-band .btn--outline {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}
.cta-band .btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* === Footer === */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.5);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.83rem;
}
.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: var(--white); }
.site-footer__brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 0.4rem;
}
.site-footer__links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1rem 0;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__content { padding: 3rem 0 2.5rem; justify-self: start; max-width: 100%; }
  .hero__image { min-height: 380px; order: -1; }
  .about-grid, .commission-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid--reverse { direction: ltr; }
  .styles-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 3.5rem 0; }
  .styles-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
  .process-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .preview-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
