/* ==========================================================
   styles.css — the design file for the whole Denir website.
   Every page links to this one file, so a change here
   changes every page.
   ========================================================== */

/* ---------- Colors & fonts (change these to restyle the site) ---------- */
:root {
  --bg: #f5f7f6;          /* light background */
  --text: #1f1f1f;        /* main text color */
  --muted: #555;          /* softer gray text */
  --gold: #f2c200;        /* menu icon yellow */
  --gold-dark: #8a7426;   /* gold for accents */
  --button: #0f5b75;      /* "Send" button blue-teal */
  --line: #b9cad6;        /* thin divider lines */
  --card-top: #d9d3ad;    /* service card gradient (top) */
  --card-bottom: #f3f4f1; /* service card gradient (bottom) */

  --font-body: "Space Grotesk", Arial, sans-serif;
  --font-fancy: "Fredericka the Great", "Times New Roman", serif;
  --font-serif: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }

.section-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin: 0 0 8px;
}

.section-subtitle {
  text-align: center;
  font-family: var(--font-serif);
  margin: 0 0 40px;
}

/* ---------- Header (logo + menu button) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 16px 0;
}
.site-header.solid {           /* used on pages without the big video */
  position: static;
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { width: 240px; height: auto; }

.menu-button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  display: flex;
  gap: 5px;
  transform: skewX(-20deg);
}
.menu-button span {
  display: block;
  width: 5px;
  height: 34px;
  background: var(--gold);
}

.menu-panel {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 50;
}
.menu-panel.open { display: flex; }
.menu-panel a {
  color: #fff;
  text-decoration: none;
  font-size: 1.8rem;
}
.menu-panel a:hover { color: var(--gold); }
.menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: 0;
  color: #fff; font-size: 2.5rem; cursor: pointer;
}

/* ---------- Hero (big video at the top) ---------- */
.hero {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  background: #333;
}
.hero video, .hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tagline {
  font-family: var(--font-fancy);
  font-weight: 400;
  text-align: center;
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  margin: 20px 0 10px;
}

/* ---------- Stats (320+, 1200+, 63+) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding-bottom: 40px;
}
.stats strong { display: block; font-size: 1.7rem; font-weight: 600; }
.stats span { font-size: 1.35rem; }

/* ---------- Service cards ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}
.card {
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom) 70%);
  padding: 22px 22px 22px;
  box-shadow: 0 10px 40px rgba(110, 100, 40, 0.45);
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-family: var(--font-serif);
  text-align: center;
  font-size: 1.7rem;
  margin: 0 0 12px;
}
.card p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin: 0 0 18px;
  flex-grow: 1;
}
.card img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
}

/* ---------- Resources (3 links with logos) ---------- */
.resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.resources a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}
.resources img { height: 70px; width: auto; object-fit: contain; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}
.about h2 {
  font-family: var(--font-fancy);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 20px;
}
.about p { font-size: 1.05rem; }
.about img { width: 100%; height: auto; }

/* ---------- Partners ---------- */
.partners-line { border: 0; border-top: 2px solid var(--line); margin: 30px 0; }
.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.partners img { height: 90px; width: auto; }

/* ---------- Contact ---------- */
.contact-info {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.contact-info b { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  max-width: 780px;
}
.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  background: transparent;
  font: inherit;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.full { grid-column: 1 / -1; }
.contact-form .phone { grid-column: 1 / 2; }

.consent { font-size: 0.8rem; max-width: 420px; }
.consent fieldset { border: 0; padding: 0; margin: 0; }
.consent legend { padding: 0; margin-bottom: 8px; }
.consent label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; margin: 6px 0; }

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.send-button {
  background: var(--button);
  color: #fff;
  border: 0;
  padding: 12px 70px;
  font: inherit;
  cursor: pointer;
}
.send-button:hover { filter: brightness(1.15); }
.send-button:disabled { opacity: 0.6; cursor: wait; }

.form-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1b7a3a; }
.form-status.error { color: #b3261e; }

.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: url("images/plans-banner.jpg") center / cover no-repeat;
  position: relative;
  padding: 50px 0 0;
  margin-top: 40px;
}
.site-footer::before {       /* soft white layer so the text is readable */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-fancy);
  font-size: 3rem;
  text-decoration: none;
  line-height: 1;
}
.footer-grid p { margin: 4px 0; }
.footer-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
}
.footer-nav a {
  text-align: center;
  padding: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a.active { background: #000; color: #fff; }
.copyright {
  position: relative;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 12px 0;
  margin: 0;
  background: #fff;
}

/* ---------- Simple text pages (Privacy Policy) ---------- */
.text-page { max-width: 800px; }
.text-page h1 { font-weight: 400; font-size: 2.2rem; }
.text-page p { margin: 0 0 14px; }

/* ---------- Phones & small screens ---------- */
@media (max-width: 760px) {
  .section { padding: 50px 0; }
  .logo img { width: 170px; }
  .hero { height: 45vh; min-height: 260px; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .services { grid-template-columns: 1fr; gap: 30px; }
  .resources { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .phone { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .send-button { width: 100%; }
}
