/* ============================================================
   Tomte Website — www.meettomte.com
   A caring, soothing design for a voice companion product.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Soothing palette */
  --color-cream:       #faf8f5;
  --color-warm-white:  #fff9f2;
  --color-sage:        #7a9e7e;
  --color-sage-light:  #e8f0e9;
  --color-sage-dark:   #5b7e5f;
  --color-lavender:    #b8a9c9;
  --color-lavender-light: #f0ecf5;
  --color-sky:         #a3c4d9;
  --color-sky-light:   #e9f2f7;
  --color-peach:       #e8c4a8;
  --color-peach-light: #fdf3eb;
  --color-text:        #3d3d3d;
  --color-text-light:  #6b6b6b;
  --color-text-heading:#2c2c2c;
  --color-white:       #ffffff;

  /* Typography */
  --font-body:    'Nunito', 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Sizing */
  --container-max: 1100px;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-sage-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  color: var(--color-sage);
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-sage-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* --- Hero --- */
.hero {
  padding: calc(70px + var(--space-2xl)) var(--space-md) var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: 85vh;
}

.hero h1 {
  margin-bottom: var(--space-md);
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Hero placeholder image */
.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-lavender-light) 50%, var(--color-sky-light) 100%);
}

.placeholder-circle {
  text-align: center;
}

.placeholder-icon {
  font-size: 5rem;
  color: var(--color-sage);
  display: block;
  margin-bottom: var(--space-sm);
}

.placeholder-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-style: italic;
}

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

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

.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(122, 158, 126, 0.3);
}

.btn-primary:hover {
  background: var(--color-sage-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(122, 158, 126, 0.4);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-sage-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

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

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

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- About Section --- */
.section-about {
  background: var(--color-white);
}

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

.about-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.about-card-image {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.about-card:nth-child(1) .about-card-image {
  background: var(--color-sky-light);
}

.about-card:nth-child(2) .about-card-image {
  background: var(--color-peach-light);
}

.about-card:nth-child(3) .about-card-image {
  background: var(--color-lavender-light);
}

.about-card h3 {
  margin-bottom: var(--space-xs);
}

.about-card p {
  color: var(--color-text-light);
  font-size: 0.98rem;
}

/* --- Features Section --- */
.section-features {
  background: var(--color-cream);
}

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

.feature {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.feature h3 {
  margin-bottom: var(--space-xs);
}

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

/* --- How It Works --- */
.section-how {
  background: var(--color-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-xs);
}

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

/* --- Safety Section --- */
.section-safety {
  background: var(--color-sage-light);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.safety-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.safety-card h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.15rem;
}

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

.safety-note {
  text-align: center;
  margin-top: var(--space-lg);
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Caregivers Section --- */
.section-caregivers {
  background: var(--color-cream);
}

.portal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.portal-feature {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-sage);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.portal-feature h3 {
  margin-bottom: var(--space-xs);
}

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

/* --- CTA Section --- */
.section-cta {
  background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-lavender-light) 100%);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.section-cta h2 {
  margin-bottom: var(--space-md);
  font-size: 2.2rem;
}

.section-cta p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}

/* --- Footer --- */
.footer {
  background: var(--color-text-heading);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

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

.footer-brand .logo-icon {
  color: var(--color-sage);
  font-size: 1.4rem;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-left: 0.3rem;
}

.footer-tagline {
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Privacy Page --- */
.privacy-page {
  padding: calc(70px + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.privacy-header {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.privacy-header h1 {
  margin-bottom: var(--space-xs);
}

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

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: var(--space-xl);
}

.privacy-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-sage-light);
}

.privacy-section h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.privacy-section p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.privacy-section ul {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.privacy-section ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: var(--color-text);
  font-size: 0.98rem;
}

.privacy-section a {
  color: var(--color-sage-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.contact-list li {
  list-style: none !important;
  padding: 0.3rem 0;
}

/* --- Placeholder image style --- */
.placeholder-img {
  background: var(--color-sage-light);
  color: var(--color-sage);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(70px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-placeholder {
    max-width: 280px;
  }

  .about-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

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

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

  .portal-features {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 600px) {
  h1 { font-size: 1.9rem; }

  .hero h1 { font-size: 2.2rem; }

  .section-cta h2 { font-size: 1.6rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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