/* ============================================================
   CALVIN M DESIGN — Global Stylesheet
   Fonts : Syne (headings) + Mulish (body)
   Scheme: White + Dark + Amber accent (matches logo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Mulish:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --white:        #FFFFFF;
  --light:        #F7F5F2;
  --dark:         #141210;        /* near-black, warm tint  */
  --dark-2:       #2A2520;
  --green:        #C87D0A;        /* amber — primary accent */
  --green-mid:    #E89010;        /* lighter amber on hover */
  --green-light:  #FDF3E0;        /* amber tint backgrounds */
  --green-line:   #F0D090;        /* amber border / line    */
  --text:         #1A1610;
  --text-muted:   #6B6055;
  --border:       #E8E0D4;
  --shadow-sm:    0 2px 8px rgba(20,18,16,.07);
  --shadow-md:    0 8px 32px rgba(20,18,16,.12);
  --shadow-lg:    0 20px 60px rgba(20,18,16,.16);
  --radius:       6px;
  --nav-h:        72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Mulish', sans-serif;
  font-size: 16px; line-height: 1.6;
  background: var(--white); color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1; font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(2rem,  4vw,  3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw,  1.6rem); }
h4 { font-size: 1.1rem; }
p  { font-family: 'Mulish', sans-serif; }

/* ── UTILITY ── */
.container          { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section-pad        { padding: 7rem 0; }
.section-pad-sm     { padding: 5rem 0; }

.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); display: inline-flex;
  align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 20px; height: 2px; background: var(--green);
}

.section-title { margin-bottom: 1rem; }
.section-title span { color: var(--green); }
.section-sub {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8;
  max-width: 560px;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.06em;
  padding: 0.85rem 1.8rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.22s ease; text-decoration: none;
}
.btn-primary {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-mid); border-color: var(--green-mid);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green); color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border); padding: 0.75rem 1.5rem;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo img {
  height: 40px; width: auto; object-fit: contain;
}
.nav-logo-text {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.15rem; color: var(--dark); letter-spacing: -0.01em;
  display: none; /* shown as fallback if img fails */
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links a {
  font-family: 'Syne', sans-serif; font-size: 0.82rem;
  font-weight: 600; color: var(--text-muted);
  padding: 0.45rem 0.9rem; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); background: var(--green-light); }
.nav-cta {
  background: var(--green); color: var(--white);
  font-family: 'Syne', sans-serif; font-size: 0.8rem;
  font-weight: 700; padding: 0.6rem 1.3rem;
  border-radius: var(--radius); margin-left: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--dark);
  display: block; border-radius: 2px; transition: all 0.3s;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; top: var(--nav-h);
  background: var(--white); z-index: 99;
  padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateY(-110%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  font-family: 'Syne', sans-serif; font-size: 1.2rem;
  font-weight: 700; color: var(--text); padding: 0.9rem 1rem;
  border-radius: var(--radius); border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--green); background: var(--green-light);
}
.mobile-nav .nav-cta {
  margin: 0.5rem 0 0; text-align: center;
  justify-content: center; display: flex;
}

/* ── PAGE HEADER (hero for inner pages) ── */
.page-header {
  background: var(--dark); color: var(--white);
  padding: 8rem 0 5rem; margin-top: var(--nav-h);
}
.page-header .eyebrow { color: var(--green-mid); }
.page-header .eyebrow::before { background: var(--green-mid); }
.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  max-width: 560px; line-height: 1.8;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark); color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--white);
}
.footer-brand p {
  font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7;
}
.footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--green-mid); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--green-mid); color: var(--green-mid);
}

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-line);
}

/* ── TAG / CHIP ── */
.tag {
  display: inline-block;
  background: var(--green-light); color: var(--green);
  border-radius: 20px; padding: 0.25rem 0.75rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── DIVIDER ── */
.divider {
  border: none; border-top: 1px solid var(--border); margin: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .section-pad { padding: 5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
