/* =========================================================
   DependionDigital starter styles
   Change the colors and fonts here and they update everywhere.
   ========================================================= */
:root {
  /* Colors from the brand kit */
  --cream: #e6e1dc;        /* page background */
  --sand: #ddd6cf;         /* slightly darker background for alternate sections */
  --ink: #141414;          /* near-black text and logo */
  --ink-soft: #4a4642;     /* softer text for paragraphs */
  --accent: #ee9e72;       /* brand peach for buttons and highlights */
  --accent-dark: #e58a5b;  /* button hover */
  --accent-text: #8c4220;  /* deeper peach for small text, so it stays readable */
  --accent-soft: #eabca2;  /* light peach, same shade as the hero circle */
  --dark: #141414;         /* background for .section-dark */
  --white: #ffffff;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --radius: 14px;
  --max-width: 1120px;
}

/* ---------- Basics ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* leave room for the sticky header when jumping to a section */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);       /* dark text reads clearly on the light peach */
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-small { padding: 9px 18px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(230, 225, 220, 0.92); /* --cream, slightly see-through */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: #cfc7bf; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo values come from the brand kit (Archivo, extra-wide) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
}
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  line-height: 1;
  font-stretch: 125%;
}
/* the negative right margin cancels the extra space letter-spacing adds after the last letter */
.logo-main { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.16em; margin-right: -0.16em; }
.logo-sub { font-size: 0.5rem; font-weight: 500; letter-spacing: 0.42em; margin-right: -0.42em; }
.logo-tagline {
  border-left: 1.5px solid currentColor;
  margin-left: 6px;
  padding-left: 14px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent-text); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;        /* crops the circle at the edges, like the Facebook cover */
}
/* Peach circle in the top right corner, from the brand kit */
.hero::before {
  --circle: clamp(180px, 30vw, 440px);
  content: "";
  position: absolute;
  top: calc(var(--circle) * -0.27);
  right: calc(var(--circle) * -0.27);
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}
.hero-inner { max-width: 780px; position: relative; } /* keeps the text in front of the circle */

/* Thank-you page: the message fills most of the screen so the footer sits near the bottom */
.thanks {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
}
.hero-text {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .eyebrow { color: var(--accent); }
.section-peach { background: var(--accent-soft); }
.section-peach .eyebrow { color: #7a391b; } /* a shade deeper so it stays readable on peach */

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06);
}
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 16px;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.about-text { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cfc7bf;
  border-radius: 10px;
  background: #f5f2ef;     /* light tint of the page background */
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-text);
  border-color: transparent;
}
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0; font-size: 0.92rem; color: var(--ink-soft); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p { margin: 0; }

/* ---------- Narrower screens: drop the header tagline so the menu fits ---------- */
@media (max-width: 1000px) {
  .logo-tagline { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .hero { padding: 70px 0 80px; }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; }

  .logo-mark { width: 38px; height: 38px; }
  .logo-main { font-size: 1.05rem; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px 28px;
    background: var(--cream);
    border-bottom: 1px solid #cfc7bf;
    display: none;
  }
  .site-nav.open { display: flex; }
}
