:root {
  --bg: #111110;
  --surface: #191918;
  --text: #f2f0eb;
  --muted: #a09f99;
  --accent: #c8b99c;
  --line: rgba(255, 255, 255, 0.13);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body,
input,
select,
textarea,
button {
  font-family: var(--sans);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: auto;
  max-width: 145px;
  max-height: 46px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -1px;
}

/* Page layout */

.page-container {
  width: min(1500px, 100%);
  margin: auto;
  padding: 0 6%;
}

.contact-hero {
  padding: clamp(85px, 12vw, 155px) 0 75px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  max-width: 1000px;
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 145px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-title em {
  display: block;
  margin: 12px 0 0 clamp(0px, 10vw, 140px);
  color: var(--accent);
  font-weight: 500;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-top: 65px;
}

.hero-description {
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.hero-note {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 2;
  text-align: right;
  text-transform: uppercase;
}

/* Main contact section */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(45px, 8vw, 125px);
  padding: clamp(75px, 10vw, 130px) 0;
}

.section-number {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 25px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-title em {
  color: var(--accent);
  font-weight: 500;
}

.contact-copy {
  max-width: 390px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.contact-details {
  border-top: 1px solid var(--line);
}

.contact-detail {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.detail-label {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-value {
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.detail-value a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.response-note {
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

/* Inquiry form */

.form-panel {
  padding: clamp(25px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.form-heading {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
}

.form-intro {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 20px;
}

.form-field {
  min-width: 0;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: #121211;
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.2s ease;
}

input[type="date"] {
  color-scheme: dark;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #77766f;
}

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

.form-field select {
  cursor: pointer;
}

.form-field select option {
  background: #191918;
  color: var(--text);
}

.form-field textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.8;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  margin-top: 30px;
  padding: 0 25px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #111110;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.form-submit:hover {
  background: transparent;
  color: var(--accent);
}

.form-submit span {
  font-size: 17px;
  transition: transform 0.25s ease;
}

.form-submit:hover span {
  transform: translateX(4px);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-submit:disabled:hover {
  background: var(--accent);
  color: #111110;
}

.form-disclaimer {
  margin-top: 18px;
  color: #85847e;
  font-size: 10px;
  line-height: 1.8;
}

.form-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.form-status.success {
  color: #b9d8b5;
}

.form-status.error {
  color: #f0a9a1;
}

/* Basic honeypot spam field */

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Photography services */

.services-section {
  padding: 70px 0 110px;
  border-top: 1px solid var(--line);
}

.services-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 45px;
}

.services-heading .section-title {
  margin-bottom: 0;
}

.services-heading > p {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 210px;
  padding: 27px 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-card:hover {
  background: var(--surface);
}

.service-index {
  display: block;
  margin-bottom: 35px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.service-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

/* Responsive */

@media (max-width: 1000px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-copy {
    max-width: 600px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile iOS input optimization */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .form-submit {
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .logo img {
    max-width: 100px;
    max-height: 36px;
  }

  .logo-text {
    font-size: 25px;
  }

  .page-container {
    padding: 0 5%;
  }

  .contact-hero {
    padding: 85px 0 60px;
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 25px;
  }

  .hero-title {
    font-size: clamp(53px, 13vw, 78px);
    line-height: 0.98;
  }

  .hero-title em {
    margin-left: 0;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 40px;
  }

  .hero-note {
    text-align: left;
  }

  .contact-section {
    padding: 70px 0;
    gap: 45px;
  }

  .form-panel {
    padding: 23px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-field.full-width {
    grid-column: auto;
  }

  .services-section {
    padding: 60px 0 75px;
  }

  .services-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
  }

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

  .service-card {
    min-height: 190px;
    padding: 20px 15px;
  }

  .service-index {
    margin-bottom: 25px;
  }

  .service-card h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}