:root {
  --color-bg: #F6F1E7;
  --color-surface: #FFFDF8;
  --color-text: #3B322A;
  --color-text-muted: #8A7D6B;
  --color-accent: #C36B45;
  --color-accent-hover: #A45533;
  --color-border: #E3D8C4;
  --color-white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1080px;
  --space-section: 120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: auto;
}

.js .hero__photo[data-reveal] {
  transform: translateY(24px) scale(0.985);
}

.js .hero__photo[data-reveal].is-revealed {
  transform: none;
  transition-duration: 1.1s;
}

.site-header {
  padding: 32px 0;
}

.js .site-header__inner > * {
  opacity: 0;
  animation: header-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js .site-header__inner > *:nth-child(2) {
  animation-delay: 90ms;
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__link {
  font-size: 16px;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav__link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.lang-switch__item {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch__item:hover {
  color: var(--color-text);
}

.lang-switch__item.is-active {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.hero {
  padding: 72px 0 var(--space-section);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
}

.hero__available {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 13px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.hero__available-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0;
}

.hero__tagline {
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--color-accent);
  margin: 20px 0 0;
  line-height: 1.35;
}

.hero__intro {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 28px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

.hero__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-border);
  background-image: url("/img/placeholder.svg");
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.button:active {
  transform: scale(0.985);
}

.button--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.button--primary:hover {
  background-color: var(--color-accent-hover);
}

.button--ghost {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.button--ghost:hover {
  border-color: var(--color-text-muted);
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

#services,
#contact {
  scroll-margin-top: 56px;
}

.section {
  padding: var(--space-section) 0;
}

.section__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.section__lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: 22px 0 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 34px 32px;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  border-color: #D2C4AA;
  transform: translateY(-3px);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.service-card__text {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0;
}

.contact {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 72px;
  margin-bottom: var(--space-section);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact__email {
  margin: 40px 0 0;
}

.contact__email a {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact__email a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.form__row {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form__control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__control:hover {
  border-color: #D2C4AA;
}

.form__control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(195, 107, 69, 0.16);
}

.form__control::placeholder {
  color: #B5A992;
}

textarea.form__control {
  min-height: 148px;
  resize: vertical;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form__error {
  display: none;
  font-size: 14px;
  color: #B3452C;
  margin-top: 7px;
}

.form__row.has-error .form__control {
  border-color: #B3452C;
}

.form__row.has-error .form__error {
  display: block;
}

.form__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.form__status {
  font-size: 15px;
  margin: 0;
}

.form__status--success {
  color: #4F7A4C;
}

.form__status--error {
  color: #B3452C;
}

.site-footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--color-text-muted);
}

.site-footer__inner a {
  text-decoration: none;
}

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

@media (max-width: 900px) {
  :root {
    --space-section: 88px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__photo {
    max-width: 300px;
    aspect-ratio: 1 / 1;
  }

  .contact {
    padding: 48px 36px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-section: 72px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  #services,
  #contact {
    scroll-margin-top: 28px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav__link {
    font-size: 15px;
  }

  .hero {
    padding-top: 40px;
  }

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

  .contact {
    padding: 40px 24px;
    border-radius: var(--radius-md);
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js [data-reveal],
  .js .hero__photo[data-reveal],
  .js .site-header__inner > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .service-card:hover {
    transform: none;
  }
}
