/* 
  Nairi Country Club — base styles
  Palette:
    - Base background: #4C5C6A
    - Warm white: #F5F2EC
    - Camel accent: #A57A4F
    - Chocolate accent (primary): #4A3528
*/

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #4c5c6a;
  color: #f5f2ec;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: radial-gradient(
      circle at top left,
      rgba(74, 53, 40, 0.45),
      transparent 60%
    ),
    #4c5c6a;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.86);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  margin-bottom: 12px;
  color: rgba(245, 242, 236, 0.72);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background-color: #2b3642; /* matte, deep blue */
  border-bottom: 1px solid rgba(245, 242, 236, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.16em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.65);
}

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, 0.4);
  background: transparent;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  width: 14px;
  height: 1px;
  background: #f5f2ec;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list a {
  position: relative;
  padding-bottom: 4px;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: #a57a4f;
  transition: width 220ms ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

.nav-list a.is-active::after {
  width: 100%;
}

.nav-secondary-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, 0.35);
  font-size: 11px;
}

.nav-secondary-link:hover,
.nav-secondary-link:focus-visible {
  background: rgba(245, 242, 236, 0.06);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.78);
}

.lang-option {
  border: none;
  background: none;
  padding: 2px 3px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.6;
}

.lang-option.is-active {
  opacity: 1;
}

.lang-divider {
  opacity: 0.6;
}

/* Hero */

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(31, 40, 49, 0.92),
      rgba(31, 40, 49, 0.4),
      rgba(31, 40, 49, 0.9)
    ),
    url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=1920&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  will-change: transform;
  transition: transform 18s ease-out;
}

.hero:hover .hero-media {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at top left,
      rgba(74, 53, 40, 0.5),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 0, 0, 0.55),
      transparent 50%
    );
}

.hero-content {
  position: relative;
  padding: 120px 20px 80px;
  z-index: 1;
}

.hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero-subtitle {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.9);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  color: #f5f2ec;
  transition: background-color 160ms ease, color 160ms ease,
    border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background-color: #4a3528;
  border-color: #4a3528;
  color: #f5f2ec;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #5a4030;
  border-color: #5a4030;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(245, 242, 236, 0.4);
  background-color: rgba(26, 34, 41, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: rgba(245, 242, 236, 0.06);
}

.btn-full {
  width: 100%;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  max-width: 520px;
  font-size: 12px;
  color: rgba(245, 242, 236, 0.8);
}

.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  margin-bottom: 4px;
  color: rgba(245, 242, 236, 0.7);
}

/* Services */

.services-grid {
  display: grid;
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
  background-color: rgba(26, 34, 41, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(245, 242, 236, 0.06);
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

.service-media {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.1)
  );
}

.service-media-lessons {
  background-image: url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=800&q=80&auto=format&fit=crop");
}

.service-media-photo {
  background-image: url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=800&q=80&auto=format&fit=crop");
}

.service-media-free-ride {
  background-image: url("https://images.unsplash.com/photo-1551963831-b3b1ca40c98e?w=800&q=80&auto=format&fit=crop");
}

.service-body {
  padding: 24px 24px 22px;
}

.service-body h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.service-body p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.9);
  margin: 0 0 12px;
}

.service-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.82);
}

.service-meta li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.service-meta li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #a57a4f;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a57a4f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-button::after {
  content: "→";
  font-size: 10px;
  transform: translateY(1px);
  transition: transform 160ms ease;
}

.link-button:hover::after,
.link-button:focus-visible::after {
  transform: translate(3px, 1px);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.about-text p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 242, 236, 0.9);
  margin: 0 0 12px;
}

.about-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
}

.about-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a57a4f;
}

.about-media {
  position: relative;
  min-height: 260px;
}

.about-photo {
  position: absolute;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.about-photo-main {
  inset: 0 12% 18% 0;
  background-image: url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=1200&q=80&auto=format&fit=crop");
}

.about-photo-secondary {
  width: 54%;
  height: 54%;
  right: 0;
  bottom: 0;
  background-image: url("https://images.unsplash.com/photo-1551963831-b3b1ca40c98e?w=800&q=80&auto=format&fit=crop");
  transform: translate(12%, 16%);
  border: 1px solid rgba(245, 242, 236, 0.25);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  font-size: 12px;
  color: rgba(245, 242, 236, 0.8);
}

.gallery-photo {
  border-radius: 18px;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.2)
  );
  mix-blend-mode: multiply;
}

.gallery-photo-1 {
  background-image: url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=600&q=80&auto=format&fit=crop");
}

.gallery-photo-2 {
  background-image: url("https://images.unsplash.com/photo-1551963831-b3b1ca40c98e?w=600&q=80&auto=format&fit=crop");
}

.gallery-photo-3 {
  background-image: url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=600&q=80&auto=format&fit=crop");
}

.gallery-photo-4 {
  background-image: url("https://images.unsplash.com/photo-1551963831-b3b1ca40c98e?w=600&q=80&auto=format&fit=crop");
}

/* Booking */

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

.booking-intro h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.booking-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 242, 236, 0.92);
  margin: 0 0 12px;
}

.booking-hints {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.84);
}

.booking-hints li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.booking-hints li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #a57a4f;
}

.booking-form {
  background-color: rgba(26, 34, 41, 0.9);
  border-radius: 18px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(245, 242, 236, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 242, 236, 0.22);
  background-color: rgba(14, 19, 24, 0.9);
  color: #f5f2ec;
  font-size: 13px;
  font-family: inherit;
}

.field input.has-error,
.field select.has-error,
.field textarea.has-error,
.field-checkbox input.has-error {
  border-color: #ffb8a1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid #a57a4f;
  outline-offset: 1px;
}

.field-hint {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(245, 242, 236, 0.7);
}

.field-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
}

.field-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.form-status {
  margin-top: 10px;
  font-size: 12px;
  min-height: 18px;
}

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

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

/* Contacts */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.contacts-info h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.contacts-info p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 242, 236, 0.92);
  margin: 0 0 16px;
}

.contact-list {
  margin: 0;
}

.contact-list div {
  margin-bottom: 10px;
}

.contact-list dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 236, 0.7);
}

.contact-list dd {
  margin: 2px 0 0;
  font-size: 13px;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-color: rgba(245, 242, 236, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration-color: rgba(245, 242, 236, 0.8);
}

.contacts-map {
  min-height: 220px;
}

.map-placeholder {
  border-radius: 18px;
  border: 1px solid rgba(245, 242, 236, 0.15);
  background: rgba(26, 34, 41, 0.7) url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=1200&q=80&auto=format&fit=crop") center/cover;
  padding: 32px 24px;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.96);
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 41, 0.75);
  border-radius: 18px;
  z-index: 0;
}

.map-placeholder p {
  position: relative;
  z-index: 1;
}

.map-placeholder p:first-child {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.map-placeholder p:last-child {
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(245, 242, 236, 0.08);
  padding: 18px 0 22px;
  background-color: rgba(19, 26, 32, 0.94);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: rgba(245, 242, 236, 0.78);
}

.footer-link {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.35);
}

/* Scroll animations */

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: show content after a short delay if JS hasn't made it visible */
[data-animate]:not(.is-visible) {
  animation: fadeInFallback 0.8s ease 0.2s forwards;
}

@keyframes fadeInFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure hero and above-fold content is visible immediately */
.page-hero [data-animate],
.hero-content [data-animate],
.section:first-of-type [data-animate] {
  animation: fadeInFallback 0.6s ease 0.05s forwards;
}

/* If JavaScript is disabled, show all content */
.no-js [data-animate] {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* Responsive */

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 120%;
    background-color: rgba(19, 26, 32, 0.98);
    border-radius: 14px;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 30px;
    letter-spacing: 0.16em;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid,
  .booking-grid,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media {
    min-height: 220px;
  }

  .about-photo-main {
    inset: 0 10% 18% 0;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-subtitle {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .booking-form {
    padding: 20px 16px 18px;
  }

  .field-inline {
    grid-template-columns: minmax(0, 1fr);
  }
}


