/* =====================================================================
   THEME CONFIG — Apple-inspired (black / off-white / grey + orange accent)
   Change these variables to adjust the whole site's look.
   ===================================================================== */
:root {
  --color-bg:        #FFFFFF;   /* page background */
  --color-surface:   #F5F5F7;   /* alternating section backgrounds — Apple off-white */
  --color-text:      #1D1D1F;   /* headings — near-black */
  --color-body:      #424245;   /* body copy — dark grey */
  --color-text-soft: #86868B;   /* secondary / meta text — mid grey */
  --color-accent:    #F35903;   /* orange — used for links, buttons, emphasis */
  --color-accent-hover: #D94E02;
  --color-line:      #D2D2D7;   /* hairlines / borders */
  --color-frame:     #D2D2D7;   /* photo frame / border color */

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Sora", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 980px;
  --hero-nav-offset: 72px; /* clears the fixed nav so it never sits over the subject's head */
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--color-line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a.nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.nav-links a.nav-cta:hover { background: var(--color-accent-hover); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  /* height = nav-clearing buffer + the image's own aspect ratio (1214/1766) applied to full viewport width */
  height: calc(var(--hero-nav-offset) + 68.7429vw);
  background: var(--color-text);
  color: #fff;
  text-align: center;
}
.hero-media {
  position: absolute;
  top: var(--hero-nav-offset);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.25);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .eyebrow { color: #D2D2D7; }
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  color: #fff;
  margin-bottom: 1rem;
}
.hero-tagline {
  max-width: 30rem;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #E5E5E7;
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.about-copy p { margin-bottom: 1rem; color: var(--color-body); }
.about-copy p:last-child { margin-bottom: 0; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services { background: var(--color-surface); }
.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 2.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
}
.service-card h3 { color: var(--color-text); }
.service-card p { color: var(--color-text-soft); font-size: 0.95rem; }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* =====================================================================
   TESTIMONIAL CAROUSEL
   ===================================================================== */
.testimonial-section { background: var(--color-surface); }
.testimonial-carousel {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
  padding: 2.5rem 3.5rem;
}
.testimonial-slide p {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 1.35rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.testimonial-slide cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-soft);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: color 0.15s ease;
}
.carousel-arrow:hover { color: var(--color-text); }
.carousel-prev { left: -0.25rem; }
.carousel-next { right: -0.25rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-line);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: var(--color-accent); }

@media (max-width: 640px) {
  .testimonial-slide { padding: 2.5rem 2.25rem; }
  .carousel-prev { left: 0.1rem; }
  .carousel-next { right: 0.1rem; }
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-intro { color: var(--color-text-soft); margin: 1rem 0 2rem; max-width: 32rem; }
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.contact-list li span:first-child {
  color: var(--color-text-soft);
  font-weight: 500;
}
.contact-list a:hover { color: var(--color-accent); }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
}
.contact-form-card h3 { margin-bottom: 1.5rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form button[type="submit"] { align-self: flex-start; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2386868B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-field select:invalid { color: var(--color-text-soft); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(243, 89, 3, 0.15);
}
.form-field.is-hidden { display: none; }

.form-status {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  min-height: 1.2em;
}
.form-status.is-error { color: var(--color-accent); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  border-top: 1px solid var(--color-line);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero { height: 100svh; min-height: 480px; }
  .hero-img { object-position: 30% top; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-links.is-open { max-height: 20rem; }
  .nav-links a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--color-line); }
  .nav-cta { display: inline-block; margin: 1rem 0; }
  .section { padding: 4rem 1.25rem; }
  .contact-form-card { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
