/* ==========================================================================
   Benders Ordo Ex Chao — stylesheet
   Palette matches the original site so the swap-over is seamless:
     --navy        headings / buttons / accents
     --bg-light    services + testimonials section background
     --bg-dark     hero + recent work section background
     --white       about + contact section background
   Swap any of these CSS variables to re-theme the whole site in one go.
   ========================================================================== */

:root {
  --navy: #283e62;
  --navy-dark: #1c2c47;
  --bg-light: #f0f4f9;
  --bg-dark: #000000;
  --white: #ffffff;
  --text-body: #2b2b2b;
  --text-muted: #5a6472;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-heading: 'Cinzel', 'Palatino Linotype', Palatino, serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.04em;
}

h2 { font-size: 2.25rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-dark h2 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #121c2e;
  border-bottom: 1px solid #0b1220;
  -webkit-font-smoothing: subpixel-antialiased;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: #b8c2d0;
  line-height: 1.2;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-nav a:hover { color: #cfd7e4; }
.nav-cta {
  background: #fff;
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-dark);
  color: #fff;
}
.hero-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-swirl {
  width: 100%;
  height: auto;
  display: block;
}
.hero h1 {
  position: absolute;
  top: 5.5%;
  left: 4%;
  right: auto;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(0.82rem, 1.55vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.85);
}
.hero-tagline {
  position: absolute;
  right: 4%;
  bottom: 5%;
  left: auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: right;
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 1.35vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.85);
}
.hero-cta {
  position: relative;
  display: block;
  width: max-content;
  margin: 12px 4% 16px auto;
  transform: none;
}
.hero-cta:hover {
  transform: none;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.card p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.about-copy p { color: var(--text-muted); }

/* ---------- Recent work ---------- */
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text-body);
}
.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-light);
}
.work-card-photo-top {
  object-position: top center;
}
.work-card-body { padding: 24px; }
.work-card-body p { color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 0;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-body);
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  font-style: normal;
}
.testimonial-card footer strong { color: var(--navy); }
.testimonial-card footer span { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 640px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
}
.contact-form label { font-weight: 600; margin-top: 12px; }
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #d3d9e2;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form button { margin-top: 20px; align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; }
.coffee-note {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #d3d9e2;
}
.coffee-note p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.coffee-button {
  display: inline-block;
  line-height: 0;
}
.coffee-button img {
  display: block;
  height: 60px;
  width: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cdd4e0;
  padding: 24px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-inner p { margin: 0; }
.footer-inner a {
  color: #fff;
  font-weight: 600;
}
.footer-inner a:hover { color: #cfd7e4; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #121c2e;
    padding: 20px 24px;
    gap: 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 720px) {
  .hero h1 {
    top: 6%;
    left: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }
  .hero-tagline {
    right: 10px;
    bottom: 6%;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }
  .hero-cta {
    margin: 10px 16px 12px auto;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
