/**
 * Condovacay Owner Program — Landing Page Styles
 * Palette: navy #1a2e4a | warm white #f9f7f4 | gold #c9a84c | soft gray #e8e4de
 * Breakpoints: 768px (tablet), 1024px (desktop)
 */

/* ── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #1a2e4a;
  background-color: #f9f7f4;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: #1a2e4a;
}

.section-heading--light {
  color: #f9f7f4;
}

.section-subhead {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.gold-rule {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a84c 20%, #c9a84c 80%, transparent);
  margin: 0;
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background-color: #c9a84c;
  color: #1a2e4a;
  border-color: #c9a84c;
}

.btn--gold:hover {
  background-color: #b8943f;
  border-color: #b8943f;
}

.btn--outline-gold {
  background-color: transparent;
  color: #c9a84c;
  border-color: #c9a84c;
}

.btn--outline-gold:hover {
  background-color: #c9a84c;
  color: #1a2e4a;
}

.btn--nav {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #1a2e4a;
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #f9f7f4;
  white-space: nowrap;
}

.nav__logo span {
  color: #c9a84c;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 46, 74, 0.5);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.25rem 4rem;
  max-width: 48rem;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: #f9f7f4;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 300;
  color: #f9f7f4;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero__caption {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(249, 247, 244, 0.75);
  letter-spacing: 0.05em;
}

/* ── Story Section ────────────────────────────────────────────── */
.section--warm {
  background-color: #f9f7f4;
}

.story {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .story {
    grid-template-columns: 340px 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .story {
    grid-template-columns: 360px 1fr;
    gap: 4rem;
  }
}

.story__portrait {
  justify-self: center;
}

.story__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 4px solid #c9a84c;
  box-shadow: 0 8px 30px rgba(26, 46, 74, 0.15);
}

@media (min-width: 768px) {
  .story__photo {
    width: 300px;
    height: 300px;
  }
}

.story__avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: #1a2e4a;
  border: 4px solid #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #c9a84c;
  box-shadow: 0 8px 30px rgba(26, 46, 74, 0.15);
}

@media (min-width: 768px) {
  .story__avatar {
    width: 260px;
    height: 260px;
    font-size: 4rem;
  }
}

.story__text p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: #2d3748;
}

.story__text p:last-child {
  margin-bottom: 0;
}

/* ── How It Works ─────────────────────────────────────────────── */
.section--gray {
  background-color: #e8e4de;
}

.cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.card {
  background-color: #f9f7f4;
  padding: 2rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26, 46, 74, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 46, 74, 0.12);
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card__title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #1a2e4a;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.65;
}

.how-note {
  font-size: 0.9375rem;
  font-style: italic;
  color: #4a5568;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  padding-top: 1rem;
}

/* ── Guarantee Section ────────────────────────────────────────── */
.guarantee {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 2px solid #c9a84c;
  background-color: #fff;
  box-shadow: 0 8px 32px rgba(26, 46, 74, 0.08);
}

.guarantee__heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #1a2e4a;
  margin-bottom: 1.25rem;
}

.guarantee__text {
  font-size: 1.125rem;
  color: #2d3748;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.guarantee__emphasis {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: #c9a84c;
  font-style: italic;
  line-height: 1.5;
}

/* ── Different Section ────────────────────────────────────────── */
.section--navy {
  background-color: #1a2e4a;
  color: #f9f7f4;
}

.different {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .different {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.different__copy p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: rgba(249, 247, 244, 0.9);
  line-height: 1.75;
}

.different__copy p:last-child {
  margin-bottom: 0;
}

.different__quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #c9a84c;
  line-height: 1.4;
  text-align: center;
  padding: 2rem;
  border-left: 3px solid #c9a84c;
}

@media (min-width: 1024px) {
  .different__quote {
    text-align: left;
    padding: 2rem 0 2rem 2rem;
  }
}

/* ── Transparency Section ─────────────────────────────────────── */
.transparency-list {
  max-width: 42rem;
}

.transparency-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  color: #2d3748;
  line-height: 1.65;
}

.transparency-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: #c9a84c;
  border-radius: 50%;
}

.transparency-list a {
  color: #1a2e4a;
  font-weight: 700;
  border-bottom: 1px solid #c9a84c;
  transition: color 0.2s ease;
}

.transparency-list a:hover {
  color: #c9a84c;
}

/* ── Contact Form ─────────────────────────────────────────────── */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-alert--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-row--two {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1a2e4a;
}

.form-group label .optional {
  font-weight: 400;
  color: #718096;
}

.form-group input,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background-color: #fff;
  color: #1a2e4a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

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

.form-error {
  font-size: 0.8125rem;
  color: #e53e3e;
}

.form-submit {
  margin-top: 0.5rem;
}

.contact-direct {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.contact-direct a {
  color: #1a2e4a;
  font-weight: 700;
  border-bottom: 1px solid #c9a84c;
}

.contact-direct a:hover {
  color: #c9a84c;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background-color: #1a2e4a;
  color: rgba(249, 247, 244, 0.85);
  padding: 2rem 0 1.5rem;
}

.footer__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer__main {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__main a {
  color: #c9a84c;
  transition: opacity 0.2s ease;
}

.footer__main a:hover {
  opacity: 0.8;
}

/* ── Utility ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
