/* ============================================
   DwellWell Brand Styles
   Colors derived from brand logo:
   - Navy:  #2B3A67 (primary)
   - Red:   #C44B3F (accent)
   - Cream: #FAF5F0 (background)
   - White: #FFFFFF
   ============================================ */

:root {
  --color-navy: #2B3A67;
  --color-navy-light: #3D4F7C;
  --color-red: #C44B3F;
  --color-red-dark: #A83D33;
  --color-cream: #FAF5F0;
  --color-cream-dark: #F0E8DF;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E5DDD4;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 960px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;

  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
}

a:hover {
  color: var(--color-red);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ---- Header / Navigation ---- */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 100px;
  width: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.small {
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(170deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

/* ---- Sections ---- */
.section {
  padding: var(--spacing-2xl) 0;
}

.section.alt {
  background-color: var(--color-white);
}

.section h2 {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 500px;
  margin: calc(-1 * var(--spacing-lg)) auto var(--spacing-xl);
}

/* ---- Card Grid (What You Get) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(43, 58, 103, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.card h3 {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Steps (How It Works) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  text-align: center;
}

.step {
  padding: var(--spacing-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.step h3 {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
}

.step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---- Contact Form ---- */
form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(43, 58, 103, 0.1);
}

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

form .btn {
  align-self: flex-start;
}

/* ---- Footer ---- */
footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-brand {
  background: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
}

.footer-logo {
  height: 120px;
  width: auto;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .logo-img {
    height: 70px;
  }

  .hero {
    padding: var(--spacing-xl) 0;
  }

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

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

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

  .footer-info {
    text-align: center;
  }
}

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

  .nav {
    gap: 0.5rem;
  }

  .logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .logo-img {
    height: 48px;
  }

  .btn.small {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

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

  .hero .btn,
  form .btn {
    width: 100%;
  }

  form .btn {
    align-self: stretch;
  }
}
