
:root {
  --color-bg: #FAFAF7;
  --color-text: #2C2825;
  --color-text-light: #6B6560;
  --color-accent: #8B7D6B;
  --color-accent-hover: #6B5D4B;
  --color-warm: #D4C5B2;
  --color-warm-light: #EDE8E1;
  --color-white: #FFFFFF;
  --color-border: #E0D9D0;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: 6rem 2rem;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-label span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 247, 0.2) 0%,
    rgba(44, 40, 37, 0.5) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 8rem 2rem 4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: var(--color-warm-light);
  color: var(--color-text);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

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

.btn-dark:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background: var(--color-warm-light);
  color: var(--color-text);
}

/* Section defaults */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.8;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

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

.gallery-item-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-credentials {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.about-credentials p {
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Services / How to Acquire */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-white);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-accent);
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  width: 100%;
  text-align: center;
}

/* Process */
.process-section {
  background: var(--color-warm-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
}

.process-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-warm);
  margin-bottom: 1rem;
  line-height: 1;
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Waitlist CTA */
.waitlist-section {
  background: var(--color-text);
  color: var(--color-white);
  text-align: center;
}

.waitlist-section .section-label {
  color: var(--color-warm);
}

.waitlist-section .section-title {
  color: var(--color-white);
}

.waitlist-section .section-text {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 2.5rem;
}

/* Commission */
.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.commission-image {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.commission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commission-content p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.commission-details {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-warm-light);
}

.commission-details p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.commission-details p:last-child {
  margin-bottom: 0;
}

/* Press & Licensing */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.press-card {
  background: var(--color-white);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}

.press-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.press-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Newsletter */
.newsletter-section {
  background: var(--color-warm-light);
  text-align: center;
}

.newsletter-section .section-text {
  margin: 0 auto 2rem;
}

/* Contact */
.contact-section .section-text {
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* EP Placeholder */
.ep-placeholder {
  padding: 2rem;
  background: var(--color-warm-light);
  border: 1px dashed var(--color-border);
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.25rem;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 250, 247, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-inner {
    padding: 7rem 1.25rem 3rem;
  }

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

  .gallery-item-tall {
    grid-row: span 1;
  }

  .about-grid,
  .commission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

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

  .footer-links {
    justify-content: center;
  }
}

/* ========================================
   PAGE TEMPLATE STYLES
   ======================================== */

.template-page .content-section {
    padding: 4rem 0;
}

.template-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.template-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.template-page .page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.template-page .page-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.template-page .page-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.template-page .page-content p {
    margin-bottom: 1.25rem;
}

.template-page .page-content a {
    color: var(--color-primary, var(--blue, #0088FF));
    text-decoration: none;
}

.template-page .page-content a:hover {
    text-decoration: underline;
}

.template-error .content-section {
    padding: 6rem 0;
    text-align: center;
}

/* Contact form on pages */
.ep-contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
}

.ep-contact-form input[type="text"],
.ep-contact-form input[type="email"],
.ep-contact-form textarea {
    background: var(--color-card, var(--card-bg, #16213E));
    color: var(--color-text, var(--grey-text, #B0B0C0));
    border: 1px solid var(--color-border, #2A2A4A);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.ep-contact-form input:focus,
.ep-contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, var(--blue, #0088FF));
}

.ep-contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.ep-contact-form .form-field {
    margin-bottom: 1.5rem;
}

.ep-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.ep-contact-form button,
.ep-contact-form input[type="submit"] {
    background: var(--color-primary, var(--blue, #0088FF));
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ep-contact-form button:hover {
    background: var(--color-primary-hover, #0077E6);
}

.site-footer {
    position: relative;
    z-index: 1;
}
/* Fix: container padding */
.container, .section-inner, [class*="inner"] {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}
section, [class*="section"] {
    overflow-x: hidden;
}

/* Fix: hero z-index */
.hero-bg, [class*="hero-bg"] { z-index: -2 !important; }
.hero-gradient, .hero-overlay, [class*="hero"]::before, [class*="hero"]::after { z-index: -1 !important; }
.hero-bg img { object-fit: cover; width: 100%; height: 100%; }

/* Button styles */
.button, a.button, a.btn-primary, a.btn-secondary, a.btn-dark, a.btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
    line-height: 1.4;
}
.btn-primary, .button:not([class*="outline"]):not([class*="secondary"]) {
    background: var(--color-primary, var(--color-accent, #5a4a3a));
    color: #fff !important;
    border: 2px solid var(--color-primary, var(--color-accent, #5a4a3a));
}
.btn-outline, .button[class*="outline"] {
    background: transparent;
    border: 2px solid currentColor;
}
a.read-more, .read-more {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary, var(--color-accent, #5a4a3a));
    border-bottom: 2px solid currentColor;
}
.hero-cta, .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
