/* ============================================
   THE COTTAGE IN HARWICHPORT — STYLES
   Deep Navy (#1B2A4A) + Warm Gold (#B8860B)
   ============================================ */

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

:root {
  --navy: #1B2A4A;
  --navy-light: #243660;
  --navy-dark: #131f38;
  --gold: #B8860B;
  --gold-light: #D4A017;
  --gold-pale: #F5E6B8;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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 24px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(27, 42, 74, 0.97);
  box-shadow: 0 1px 0 rgba(184, 134, 11, 0.15);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-menu a:hover {
  color: var(--white);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  padding: 8px 20px !important;
  letter-spacing: 0.08em !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

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

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  display: block;
}

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

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

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

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 74, 0.55) 0%,
    rgba(27, 42, 74, 0.40) 40%,
    rgba(27, 42, 74, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-greeting {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-accent {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: float 2.5s ease-in-out infinite;
  transition: color 0.3s ease;
}

.hero-scroll:hover {
  color: var(--gold);
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.25);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ---- SECTIONS ---- */
.section {
  padding: 120px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 24px;
}

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

.section-title.center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.8;
}

.section-subtitle.center {
  text-align: center;
  margin: 0 auto 64px;
}

/* ---- ABOUT ---- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  overflow: hidden;
  border-radius: 2px;
}

.about-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about-img-main:hover img {
  transform: scale(1.03);
}

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 55%;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(27, 42, 74, 0.15);
}

.about-img-secondary img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about-img-secondary:hover img {
  transform: scale(1.03);
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-text p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy);
}

.about-features {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-700);
}

.about-features li svg {
  flex-shrink: 0;
}

/* ---- ROOMS ---- */
.rooms {
  background: var(--cream);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.room-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(27, 42, 74, 0.1);
}

.room-img {
  overflow: hidden;
  height: 260px;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

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

.room-info {
  padding: 28px;
}

.room-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}

.room-info p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 20px;
}

.room-amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-amenities li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 6px 12px;
  border-radius: 2px;
}

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

/* ---- AREA ---- */
.area {
  background: var(--white);
}

.area-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.area-highlights {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}

.area-item {
  display: flex;
  gap: 24px;
  align-items: start;
}

.area-item-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.area-item h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.area-item p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.7;
}

.area-images {
  position: relative;
  padding-top: 40px;
}

.area-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.area-img-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.6s var(--ease-out);
}

.area-img-grid img:hover {
  transform: scale(1.02);
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  background: var(--navy);
  padding: 120px 0;
}

.testimonials .section-title {
  color: var(--white);
  margin-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 40px 32px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 134, 11, 0.3);
}

.testimonial-quote {
  margin-bottom: 24px;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.testimonial-source {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- CTA ---- */
.cta {
  background: var(--cream);
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- CONTACT ---- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: grid;
  gap: 32px;
}

.contact-detail {
  display: flex;
  gap: 20px;
  align-items: start;
}

.contact-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.7;
}

.contact-detail a:hover {
  color: var(--gold);
}

.contact-form-wrap {
  background: var(--gray-50);
  border-radius: 2px;
  padding: 48px;
  border: 1px solid var(--gray-200);
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  padding: 12px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

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

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

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: 2px;
  margin-top: 8px;
}

.form-success p {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--navy);
}

/* ---- MAP ---- */
.map-section {
  border-top: 1px solid var(--gray-200);
}

.map-section iframe {
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.4s ease;
}

.map-section iframe:hover {
  filter: grayscale(0);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 300px;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.footer-links {
  display: grid;
  gap: 14px;
}

.footer-links a {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-contact p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 28px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid,
  .area-split,
  .contact-grid {
    gap: 48px;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(27, 42, 74, 0.98);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    backdrop-filter: blur(12px);
  }

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

  .nav-toggle {
    display: flex;
  }

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

  .about-img-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: -20px;
  }

  .about-img-main img {
    height: 360px;
  }

  .rooms-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .area-split {
    grid-template-columns: 1fr;
  }

  .area-images {
    order: -1;
  }

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

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .about-img-secondary {
    width: 80%;
  }

  .area-img-grid img {
    height: 200px;
  }
}
