/* ============================================================
   Custom properties
   ============================================================ */
:root {
  --color-bg:         #faf8f5;
  --color-bg-contact: #f0ebe3;
  --color-text:       #2c2218;
  --color-text-hero:  #faf8f5;
  --color-accent:     #b08d5a;
  --color-muted:      #8a7a6a;
  --color-border:     #e8dfd0;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  system-ui, -apple-system, sans-serif;

  --nav-height: 52px;

  --color-hero-subtitle: #f0ddb8;
  --color-input-bg:      #fff;
  --color-footer-text:   #b0a090;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  padding-top: var(--nav-height); /* compensate fixed nav */
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
}

/* iOS: remove native input styling */
input,
textarea,
button {
  -webkit-appearance: none;
  border-radius: 0;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border);
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 3vw, 0.95rem);
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  /* touch target ≥ 44px */
  min-height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.nav__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 400px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
}

.hero__text {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text-hero);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero__divider {
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
  border: none;
  margin: 0.75rem auto;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-hero-subtitle);
}

@media (max-width: 400px) {
  .hero {
    height: 70vh;
  }
}

/* ============================================================
   Bio sections
   ============================================================ */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-top: 1px solid var(--color-border);
}

.bio-section__text {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-section__text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.bio-section__image {
  overflow: hidden;
}

.bio-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bio section 2: reversed column order */
.bio-section--reversed .bio-section__image {
  order: -1;
}

/* Bio section 3: centered single column */
.bio-centered {
  border-top: 1px solid var(--color-border);
  padding: 64px 24px;
  text-align: center;
}

.bio-centered__inner {
  max-width: 680px;
  margin: 0 auto;
}

.bio-centered__inner p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Mobile */
@media (max-width: 767px) {
  .bio-section {
    grid-template-columns: 1fr;
  }

  .bio-section__text {
    padding: 32px 24px;
    order: 0;
  }

  .bio-section__image {
    height: 280px;
    order: 1; /* always below text on mobile */
  }

  /* override reversed order on mobile */
  .bio-section--reversed .bio-section__image {
    order: 1;
  }

  .bio-section--reversed .bio-section__text {
    order: 0;
  }
}

@media (max-width: 375px) {
  .bio-section__image {
    height: 220px;
  }
}

/* ============================================================
   Contact section
   ============================================================ */
.contact-section {
  background: var(--color-bg-contact);
  border-top: 2px solid var(--color-accent);
  padding: 64px 48px;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info__heading,
.contact-form__heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
}

address a {
  color: var(--color-text);
  text-decoration: none;
}

address a:hover,
address a:focus-visible {
  color: var(--color-accent);
}

/* Form fields */
.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1rem; /* ≥16px: prevents iOS Safari auto-zoom */
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
}

.btn-submit {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-text);
  border: none;
  padding: 14px 28px;
  min-height: 44px; /* touch target */
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: var(--color-accent);
}

/* Mobile */
@media (max-width: 767px) {
  .contact-section {
    padding: 48px 24px;
  }

  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-footer-text);
}

/* ============================================================
   grazie.html
   ============================================================ */
.grazie {
  min-height: calc(80vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.grazie__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.grazie__subheading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.grazie__back {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.grazie__back:hover,
.grazie__back:focus-visible {
  text-decoration: underline;
}
