/* =====================================================================
   CaffeineLabsIT — Stylesheet (style.css)
   ---------------------------------------------------------------------
   THEME : "Warm Coffee Lab Tech". Cream background, espresso text,
           gold/caramel accents. Palette pulled directly from the logo.
   ORDER : 1) Variables  2) Reset/base  3) Buttons  4) Header/Nav
           5) Hero  6) Services  7) About  8) Contact  9) Footer
           10) Responsive (media queries)
   EDIT  : Change brand colors in :root once and they update everywhere.
   ===================================================================== */

/* ---------- 1) DESIGN TOKENS / VARIABLES -----------------------------
   All brand colors live here. Pulled from Logo_Colors.txt.
   Change a value here to re-skin the whole site. */
:root {
  --espresso:   #4A1519;  /* darkest brown — text, headers */
  --coffee:     #8B5A2B;  /* medium brown — secondary accents */
  --latte-gold: #C68E4F;  /* gold — buttons, links */
  --caramel:    #D4A373;  /* light caramel — hovers, glows */
  --cream:      #F7F5EB;  /* off-white — page background */

  /* Derived / utility tones */
  --cream-card: #FFFDF7;  /* slightly brighter cream for cards */
  --espresso-soft: rgba(74, 21, 25, 0.72); /* muted body text */

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 21, 25, 0.10);
}

/* ---------- 2) RESET + BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }      /* smooth anchor scrolling */

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

a { color: var(--latte-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coffee); }

/* Reusable centered container width */
section { padding: 5.5rem 1.5rem; }
.hero-inner, .section-head, .service-grid,
.about-inner, .contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Shared section heading style */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-eyebrow, .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--coffee);
  margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--espresso); }

/* ---------- 3) BUTTONS ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }

/* Primary: solid gold, espresso text */
.btn-primary {
  background: var(--latte-gold);
  color: var(--espresso);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--caramel); color: var(--espresso); }

/* Secondary: outlined */
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border-color: var(--coffee);
}
.btn-secondary:hover { background: var(--coffee); color: var(--cream); }

/* ---------- 4) HEADER / NAV ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 235, 0.92);
  backdrop-filter: blur(8px);              /* frosted glass effect */
  border-bottom: 1px solid rgba(139, 90, 43, 0.15);
}
.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.5rem;
}
.nav-logo img { height: 48px; width: auto; display: block; }

.nav-links { list-style: none; display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--espresso); font-weight: 500; }
.nav-links a:hover { color: var(--latte-gold); }
.nav-cta {
  background: var(--latte-gold);
  color: var(--espresso) !important;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--caramel); }

/* Hamburger toggle — hidden on desktop, shown on mobile via media query */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--espresso); border-radius: 2px; }

/* ---------- 5) HERO -------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 7rem 1.5rem 6rem;
  overflow: hidden;
}
/* Decorative "coffee steam" gradient glow behind the hero text */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 163, 115, 0.35), transparent 45%),
    radial-gradient(circle at 75% 30%, rgba(198, 142, 79, 0.30), transparent 50%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
/* Large centered hero logo (full version with name + slogan).
   Wider than the icon since it includes text. Change max-width to resize. */
.hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 440px;
  width: 80%;
  height: auto;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 1.2rem; }
.hero-title .accent { color: var(--latte-gold); font-style: italic; }
.hero-subtitle {
  max-width: 620px; margin: 0 auto 2.2rem;
  font-size: 1.15rem; color: var(--espresso-soft);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 6) SERVICES ---------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.service-card {
  background: var(--cream-card);
  border: 1px solid rgba(139, 90, 43, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--latte-gold);
  box-shadow: 0 16px 40px rgba(74, 21, 25, 0.16);
}
.service-icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(198, 142, 79, 0.18);
  color: var(--coffee);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: .6rem; color: var(--espresso); }
.service-card p { color: var(--espresso-soft); }

/* ---------- 7) ABOUT ------------------------------------------------- */
.about { background: var(--espresso); color: var(--cream); }
.about-inner { max-width: 720px; text-align: center; }
.about .section-title { color: var(--cream); margin-bottom: 1.2rem; }
.about p { color: rgba(247, 245, 235, 0.85); font-size: 1.1rem; }

/* ---------- 8) CONTACT ----------------------------------------------- */
/* NOTE: The contact form was removed for now (Worker not deployed yet).
   This section now centers a short lead paragraph + a mailto: email button.
   When the form is restored, bring back the .contact-form / .form-row /
   .form-status rules that previously lived here. */
.contact-inner { max-width: 640px; text-align: center; }
.contact-lead {
  font-size: 1.1rem;
  color: var(--espresso-soft);
  margin-bottom: 1.6rem;
}

/* ---------- 9) FOOTER ------------------------------------------------ */
.site-footer {
  background: var(--espresso);
  color: rgba(247, 245, 235, 0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .9rem;
}

/* ---------- 10) RESPONSIVE ------------------------------------------- */
/* Tablet: collapse services to 1 column at a comfortable breakpoint */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* Mobile: show hamburger, hide inline nav links until toggled.
   script.js adds/removes the .open class on #nav-links. */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(139, 90, 43, 0.15);
    padding: .5rem 1.5rem 1rem;
    display: none;             /* hidden by default on mobile */
  }
  .nav-links.open { display: flex; }   /* .open toggled by JS */
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; }
  .nav-cta { text-align: center; margin-top: .4rem; }
}
