/* ============================================
   HORSE INN AROUND — Editorial Outer Banks Site
   Teal + Slate Grey · Playfair Display + Inter
   ============================================ */

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

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(2, 6, 23, 0.08);
  --shadow-md: 0 4px 16px rgba(2, 6, 23, 0.1);
  --shadow-lg: 0 8px 32px rgba(2, 6, 23, 0.12);
  --shadow-xl: 0 16px 48px rgba(2, 6, 23, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(248, 250, 252, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-icon {
  color: var(--teal-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--teal-700);
}

.btn-nav {
  background: var(--teal-700);
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-nav:hover {
  background: var(--teal-800);
  color: white !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--teal-950);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 148, 136, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 184, 166, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(17, 94, 89, 0.6) 0%, transparent 70%),
    linear-gradient(160deg, var(--teal-950) 0%, #0a3d3a 40%, var(--teal-800) 70%, var(--teal-700) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-4xl) var(--space-xl);
  color: white;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-200);
  margin-bottom: var(--space-xl);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  color: white;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal-200);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--slate-300);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--slate-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--slate-400);
  animation: float 2.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--teal-600);
  color: white;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: var(--space-lg);
}

.section-title em {
  font-style: italic;
  color: var(--teal-700);
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-500);
  font-weight: 300;
}

/* ============================================
   ROOMS
   ============================================ */
.rooms {
  background: var(--slate-50);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.room-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.room-card-img {
  overflow: hidden;
  aspect-ratio: 3/2;
}

.room-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-card-img img {
  transform: scale(1.05);
}

.room-card-body {
  padding: var(--space-xl);
}

.room-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-sm);
}

.room-card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--slate-500);
  margin-bottom: var(--space-lg);
}

.room-card-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.room-card-features li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.rooms-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-400);
  font-style: italic;
}

/* ============================================
   STAY / WHY COROLLA
   ============================================ */
.stay {
  background: white;
}

.stay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.stay-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 7/9;
  box-shadow: var(--shadow-lg);
}

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

.stay-content {
  padding: var(--space-xl) 0;
}

.stay-content .section-eyebrow {
  text-align: left;
}

.stay-content .section-title {
  text-align: left;
}

.stay-content > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-600);
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.stay-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stay-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.stay-feature svg {
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.stay-feature strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
}

.stay-feature span {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ============================================
   AMENITIES
   ============================================ */
.amenities {
  background: var(--slate-900);
  color: white;
}

.amenities .section-eyebrow {
  color: var(--teal-400);
}

.amenities .section-title {
  color: white;
}

.amenities .section-title em {
  color: var(--teal-300);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.amenity {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.amenity:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(45, 212, 191, 0.3);
}

.amenity-icon {
  color: var(--teal-400);
  margin-bottom: var(--space-md);
}

.amenity-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.amenity-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate-400);
  font-weight: 300;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
  background: var(--slate-50);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

.location-content {
  padding: var(--space-xl) 0;
}

.location-content .section-eyebrow {
  text-align: left;
}

.location-content .section-title {
  text-align: left;
}

.location-address {
  font-style: normal;
  margin: var(--space-xl) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-700);
}

.location-address strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--slate-900);
  display: block;
  margin-bottom: 0.25rem;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.location-detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--slate-600);
}

.location-detail svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

.location-detail a {
  color: var(--teal-700);
  font-weight: 500;
  transition: color 0.2s ease;
}

.location-detail a:hover {
  color: var(--teal-500);
  text-decoration: underline;
}

.location-note {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.65;
  font-weight: 300;
}

.location-map {
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  padding: var(--space-xl) 0;
}

.contact-info .section-eyebrow {
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
}

.contact-info > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-500);
  margin-bottom: var(--space-2xl);
  font-weight: 300;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--slate-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-method:hover {
  border-color: var(--teal-300);
  background: var(--teal-50);
}

.contact-method-icon {
  color: var(--teal-600);
  flex-shrink: 0;
}

.contact-method span {
  font-weight: 500;
  color: var(--slate-700);
  font-size: 0.95rem;
}

/* FORM */
.contact-form-wrap {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--slate-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--teal-700);
}

.form-success svg {
  margin: 0 auto var(--space-md);
  color: var(--teal-500);
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.footer-logo svg {
  color: var(--teal-400);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate-500);
  max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.875rem;
  color: var(--slate-500);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: ensure content is visible even if JS is disabled */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .hero-stat-divider {
    display: none;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .stay-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .stay-img {
    aspect-ratio: 4/3;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-content {
    padding: var(--space-3xl) var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-form-wrap {
    padding: var(--space-lg);
  }
}
