/* =========================================================
   Artashes First LLC — base stylesheet
   Plain CSS3, no build step. Palette lives in :root as custom
   properties so it can be retuned in one place.
   ========================================================= */

:root {
  /* Brand palette: light, warm-neutral base + deep charcoal-navy text
     + gold/bronze accent. Navy is now a text/accent color, not a
     large background fill — see --color-header-bg / --color-footer-bg. */
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-header-bg: #fffdf8;
  --color-footer-bg: #efeae0;
  --color-primary: #1c2536;
  --color-primary-dark: #11161f;
  --color-primary-soft: #2a3549;
  --color-accent: #c9973f;
  --color-accent-light: #e3bb6c;
  --color-accent-dark: #a97c2e;
  --color-text: #1c2536;
  --color-text-muted: #5a6472;
  --color-border: #e4e0d6;
  --color-success: #2f7a4f;
  --color-error: #b8433a;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(17, 22, 31, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 22, 31, 0.12);
  --transition: 180ms ease;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-primary:hover { background: var(--color-accent-light); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(28,37,54,0.06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}
.brand-icon { width: 36px; height: 36px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--color-text); background: rgba(28,37,54,0.05); }
.main-nav a[aria-current="page"] { color: var(--color-accent-dark); }
.main-nav .btn-primary { color: var(--color-primary-dark); margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; }
  .main-nav .btn-primary { margin: 8px 12px 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-header-bg) 0%, var(--color-bg) 100%);
  color: var(--color-text);
  padding: 84px 0 96px;
  border-bottom: 1px solid var(--color-border);
}
.hero .container { display: grid; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 58ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-surface); }
.section-header { max-width: 640px; margin: 0 0 40px; }
.section-header .eyebrow {
  display: block;
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-header p { color: var(--color-text-muted); }

/* ---------- service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(201, 151, 63, 0.14);
  color: var(--color-accent-dark);
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }
.service-empty { color: var(--color-text-muted); font-style: italic; }

/* ---------- about / story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.value-list { display: grid; gap: 18px; margin-top: 8px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  margin-top: 9px; flex-shrink: 0;
}
.seal-frame {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.seal-frame img { width: 150px; height: 150px; }
.seal-frame .caption { color: var(--color-text-muted); font-size: 0.88rem; max-width: 30ch; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .seal-frame { order: -1; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(201,151,63,0.10), rgba(201,151,63,0.03));
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--color-text-muted); margin: 0; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 0;
}
.contact-success[hidden] {
  display: none; /* author `display` above otherwise beats the UA [hidden] rule */
}
.contact-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(47,122,79,0.12);
  color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.contact-success-icon svg { width: 24px; height: 24px; }
.contact-success-message {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}
.contact-success-cooldown {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}
.contact-success-cooldown strong {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.contact-list { display: grid; gap: 20px; }
.contact-list .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-list .value { font-weight: 600; }
.contact-list a.value:hover { color: var(--color-accent-dark); }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,37,54,0.06);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}
.social-row a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.social-row svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,151,63,0.2);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 4px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.form-status.visible { display: block; }
.form-status.ok { background: rgba(47,122,79,0.12); color: var(--color-success); }
.form-status.error { background: rgba(184,67,58,0.12); color: var(--color-error); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-text-muted);
  padding: 56px 0 28px;
  margin-top: 64px;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(28,37,54,0.1);
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand .brand-word { color: var(--color-text); }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 6px; max-width: 32ch; }
.footer-col h4 { color: var(--color-text); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--color-text); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- misc page bits ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--color-header-bg) 0%, var(--color-bg) 100%);
  color: var(--color-text);
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero p { color: var(--color-text-muted); max-width: 60ch; margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201,151,63,0.14);
  color: var(--color-accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
