/* ========================================
   SHP Photography — Design Tokens & Styles
   Clean, minimal, photography-forward
   ======================================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* 4px Spacing System */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ---- LIGHT MODE (warm, minimal, photography-appropriate) ---- */
:root, [data-theme="light"] {
  --color-bg:             #fafaf8;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f5f3;
  --color-surface-offset: #eeede9;
  --color-divider:        #e0ddd8;
  --color-border:         #d4d1ca;

  --color-text:           #1a1a18;
  --color-text-muted:     #6b6b66;
  --color-text-faint:     #a8a8a2;
  --color-text-inverse:   #fafaf8;

  --color-primary:        #1a1a18;
  --color-primary-hover:  #333330;
  --color-accent:         #8b7355;
  --color-accent-hover:   #7a6449;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --color-bg:             #121210;
  --color-surface:        #1a1a18;
  --color-surface-2:      #222220;
  --color-surface-offset: #2a2a28;
  --color-divider:        #333330;
  --color-border:         #444440;

  --color-text:           #e8e8e4;
  --color-text-muted:     #9a9a94;
  --color-text-faint:     #5a5a56;
  --color-text-inverse:   #1a1a18;

  --color-primary:        #e8e8e4;
  --color-primary-hover:  #d0d0cc;
  --color-accent:         #c4a87a;
  --color-accent-hover:   #d4b88a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #121210;
    --color-surface:        #1a1a18;
    --color-surface-2:      #222220;
    --color-surface-offset: #2a2a28;
    --color-divider:        #333330;
    --color-border:         #444440;
    --color-text:           #e8e8e4;
    --color-text-muted:     #9a9a94;
    --color-text-faint:     #5a5a56;
    --color-text-inverse:   #1a1a18;
    --color-primary:        #e8e8e4;
    --color-primary-hover:  #d0d0cc;
    --color-accent:         #c4a87a;
    --color-accent-hover:   #d4b88a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ========== LAYOUT ========== */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ========== HEADER / NAV ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo-mark {
  width: 36px;
  height: 36px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a:hover {
  color: var(--color-text);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-6);
    gap: var(--space-4);
  }
}

/* ========== HERO ========== */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  font-weight: 400;
}
.hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.hero-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.hero-cta:active {
  transform: translateY(0);
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}
.section-alt {
  background: var(--color-surface-2);
}
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  font-weight: 400;
}
.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
}

/* ========== SERVICES CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card-img {
  aspect-ratio: 4/3;
  background: var(--color-surface-offset);
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-body {
  padding: var(--space-6) var(--space-6) var(--space-8);
}
.service-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  font-weight: 400;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.service-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.price-unit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--content-default);
  margin-inline: auto;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.about-image {
  aspect-ratio: 3/4;
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  font-weight: 400;
}
.about-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.about-content p:last-of-type {
  margin-bottom: 0;
}

/* ========== PORTFOLIO GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
}
.gallery-grid .gallery-item {
  aspect-ratio: 1;
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item--top img {
  object-position: center 15% !important;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
/* Group photos: landscape crop */
.gallery-grid .gallery-item:nth-child(1) img {
  object-position: center 40%;
}
.gallery-grid .gallery-item:nth-child(2) img {
  object-position: center center;
}
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== BOOKING CALENDAR ========== */
.booking-section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.booking-container {
  max-width: var(--content-default);
  margin-inline: auto;
}

.calendar-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.calendar-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
}
.calendar-nav {
  display: flex;
  gap: var(--space-2);
}
.calendar-nav button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
}
.calendar-nav button:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-day-header {
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-divider);
}
.calendar-day {
  min-height: 80px;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  border-right: 1px solid var(--color-divider);
  position: relative;
  cursor: default;
}
.calendar-day:nth-child(7n) {
  border-right: none;
}
.calendar-day:last-child,
.calendar-day:nth-last-child(-n+7) {
  border-bottom: none;
}
.calendar-day-num {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.calendar-day.today .calendar-day-num {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}
.calendar-day.other-month .calendar-day-num {
  color: var(--color-text-faint);
}
.calendar-day.has-slots {
  cursor: pointer;
}
.calendar-day.has-slots:hover {
  background: var(--color-surface-2);
}
.calendar-day .slot-indicator {
  font-size: 0.65rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: var(--space-1);
}

@media (max-width: 640px) {
  .calendar-day { min-height: 56px; padding: var(--space-1); }
  .calendar-day .slot-indicator { font-size: 0.55rem; }
  .calendar-day-header { padding: var(--space-2); font-size: 0.65rem; }
  .calendar-header { padding: var(--space-4); }
  .calendar-header h3 { font-size: var(--text-base); }
}

/* ========== BOOKING MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0 0 0 / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s var(--ease-out);
  border: 1px solid var(--color-divider);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
}
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.modal-close:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.modal-body {
  padding: var(--space-6);
}

/* Time slots */
.time-slots-label {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.time-slot {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.time-slot:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.time-slot.selected {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* Form fields */
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Session type toggle */
.session-type-toggle {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  background: var(--color-bg);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
}
.session-type-btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: calc(var(--radius-lg) - var(--space-1));
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}
.session-type-btn:hover {
  color: var(--color-text);
}
.session-type-btn.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn-submit {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.btn-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
  text-align: center;
  padding: var(--space-8);
}
.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}
.success-message h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  font-weight: 400;
}
.success-message p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
}

/* ========== CONTACT STRIP ========== */
.contact-strip {
  text-align: center;
  padding: clamp(var(--space-8), 5vw, var(--space-16)) var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.contact-strip p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.contact-strip a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 2px;
  transition: border-color var(--transition-interactive);
}
.contact-strip a:hover {
  border-color: var(--color-text);
}

/* ========== FOOTER ========== */
.footer {
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-divider);
  text-align: center;
}
.footer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-inline: auto;
}
.footer a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-text-muted);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ========== PROCESS SECTION ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
.process-step {
  text-align: center;
}
.step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  font-weight: 400;
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ========== PRICE TAG ========== */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* ========== NOTIFICATION ========== */
.notification {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  max-width: 360px;
}
.notification.show {
  transform: translateY(0);
  opacity: 1;
}
.notification p {
  font-size: var(--text-sm);
}
