/* ==========================================================================
   BEESQUARE P S A — stylesheet
   Design tokens: ink #14181F · paper #F5F6F2 · gold #C99A3B · slate #5B6270
   ========================================================================== */

:root{
  --ink: #14181f;
  --ink-soft: #262c36;
  --paper: #f5f6f2;
  --paper-dim: #eceee7;
  --gold: #c99a3b;
  --gold-deep: #a97f2b;
  --slate: #5b6270;
  --line: #dedfd7;
  --line-dark: #333a45;
  --white: #ffffff;

  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow: 0 12px 32px -16px rgba(20, 24, 31, 0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol, dl{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, dt{ margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; font-size: 1rem; }

:focus-visible{
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type scale ---------- */
h1{ font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.08; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.16; }
h3{ font-size: 1.15rem; }

.eyebrow{
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.eyebrow-light{ color: var(--gold); }

.section-lead, .hero-lead, .why-lead{
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 58ch;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.btn-ghost{
  background: transparent;
  border-color: var(--line-dark, var(--ink));
  color: var(--ink);
}
.btn-ghost:hover{
  border-color: var(--ink);
  background: rgba(20,24,31,0.05);
}
.btn-small{ padding: 10px 18px; font-size: 0.9rem; }
.btn-full{ width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark{ color: var(--ink); flex-shrink: 0; }
.brand-word{
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.brand-suffix{
  font-weight: 500;
  color: var(--slate);
  font-size: 0.82em;
}

.main-nav ul{
  display: flex;
  gap: 34px;
}
.main-nav a{
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-deep);
  transition: right 0.22s var(--ease);
}
.main-nav a:hover::after{ right: 0; }

.header-actions{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav-toggle span{
  display: block;
  height: 1.6px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  padding: 76px 0 88px;
  overflow: hidden;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.hero-lead{ margin: 20px 0 34px; }
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-stats dt{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-deep);
}
.hero-stats dd{
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--slate);
  max-width: 16ch;
}

.hero-visual{ color: var(--ink); }
.hex{ fill: none; stroke: var(--line-dark); stroke-width: 1; opacity: 0.35; }
.hex-fill{ fill: var(--ink); opacity: 1; stroke: none; }
.hex-outline{ stroke: var(--gold-deep); opacity: 0.7; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about{ padding: 96px 0; }
.about-inner{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-copy p{ color: var(--slate); margin: 18px 0; max-width: 60ch; }
.about-copy h2{ margin-top: 0; }

.about-points{ margin-top: 26px; display: grid; gap: 14px; }
.about-points li{
  padding-left: 22px;
  position: relative;
  color: var(--slate);
  font-size: 0.96rem;
}
.about-points li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.about-points span{ color: var(--ink); font-weight: 600; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services{ padding: 96px 0; background: var(--paper-dim); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{ margin: 0 0 14px; }

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--paper-dim);
  padding: 38px 30px;
  transition: background-color 0.2s var(--ease);
}
.service-card:hover{ background: var(--white); }
.service-icon{
  width: 42px; height: 42px;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.service-card h3{ margin-bottom: 10px; }
.service-card p{ color: var(--slate); font-size: 0.95rem; }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why{
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
}
.why-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
}
.why-lead{ color: #b8bdc7; margin: 18px 0 40px; }

.why-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 28px;
}
.why-item h3{ font-size: 1.02rem; margin-bottom: 8px; }
.why-item p{ color: #b8bdc7; font-size: 0.92rem; }

.why-panel{
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px;
}
.why-panel-label{
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.why-steps{ display: grid; gap: 22px; }
.why-steps li{
  display: flex;
  gap: 16px;
}
.why-steps span{
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.why-steps h4{ margin: 0 0 4px; font-size: 0.98rem; }
.why-steps p{ color: #b8bdc7; font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact{ padding: 96px 0; }
.contact-inner{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-info > p{ color: var(--slate); margin: 18px 0 36px; max-width: 46ch; }

.info-list{ display: grid; gap: 22px; }
.info-list dt{
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.info-list dd{
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.info-list dd a:hover{ color: var(--gold-deep); }

.contact-form{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 20px;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field{ display: grid; gap: 7px; }
.form-field label{ font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.optional{ font-weight: 400; color: var(--slate); }

.form-field input,
.form-field select,
.form-field textarea{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 154, 59, 0.18);
}
.form-field textarea{ resize: vertical; min-height: 110px; }

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea{
  border-color: #b3402f;
}
.field-error{
  font-size: 0.8rem;
  color: #b3402f;
  min-height: 1em;
}

.form-note{
  font-size: 0.88rem;
  color: var(--slate);
  min-height: 1.2em;
}
.form-note.success{ color: #3f7a4d; font-weight: 600; }
.form-note.error{ color: #b3402f; font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  background: var(--ink);
  color: #b8bdc7;
  padding-top: 72px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand{ color: var(--paper); margin-bottom: 14px; }
.footer-brand p{ max-width: 40ch; font-size: 0.92rem; }

.footer-nav{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footer-nav h4{
  color: var(--paper);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.footer-nav ul{ display: grid; gap: 10px; font-size: 0.9rem; }
.footer-nav a:hover{ color: var(--gold); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 30px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.footer-fine{ color: #838a97; }

/* ---------- Back to top ---------- */
.to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s var(--ease);
  z-index: 40;
}
.to-top.visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover{ background: var(--gold-deep); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 320px; margin: 0 auto; }
  .about-inner{ grid-template-columns: 1fr; gap: 40px; }
  .about-media{ max-width: 420px; }
  .why-inner{ grid-template-columns: 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .main-nav.open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul{ flex-direction: column; gap: 4px; }
  .main-nav a{ display: block; padding: 12px 0; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-small{ display: none; }

  .hero{ padding: 44px 0 60px; }
  .hero-stats{ grid-template-columns: 1fr; gap: 18px; }
  .service-grid{ grid-template-columns: 1fr; }
  .why-list{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-nav{ grid-template-columns: repeat(2, 1fr); }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}
