/* ===================================================================
   Stone Cold Solutions — stylesheet
   Brand: deep navy + gold, Merriweather headings, Inter body.
   =================================================================== */

:root {
  --navy-900: #0d1b29;
  --navy-800: #122538;
  --navy-700: #19324b;
  --navy-600: #21456a;
  --navy-500: #2b5582;
  --gold: #e3aa45;
  --gold-light: #f1c66f;
  --gold-dark: #c8902f;
  --cream: #f7f4ec;
  --ink: #15212e;
  --muted: #5c6b7a;
  --muted-light: #aebfce;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(8, 18, 30, 0.08);
  --shadow-md: 0 14px 40px rgba(8, 18, 30, 0.14);
  --shadow-lg: 0 24px 60px rgba(8, 18, 30, 0.20);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: "Merriweather", Georgia, serif; line-height: 1.2; color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #2a1c05;
  box-shadow: 0 8px 22px rgba(227, 170, 69, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(227, 170, 69, 0.45); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 41, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; }
.brand-name {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--muted-light); font-weight: 500; font-size: 0.98rem; transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta { color: #2a1c05; }
.main-nav .nav-cta:hover { color: #2a1c05; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(227,170,69,0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 75%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; z-index: 1; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--white); font-weight: 900; }
.hero-copy h1 .accent { color: var(--gold-light); }
.hero .lead { font-size: 1.28rem; color: var(--gold-light); margin: 18px 0 10px; font-weight: 500; }
.hero .sub { font-size: 1.08rem; color: var(--muted-light); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art img { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35)); }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin: 0 0 30px; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-intro { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ===== Service cards ===== */
.card {
  background: var(--white);
  border: 1px solid #e9e3d6;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(227,170,69,0.18), rgba(227,170,69,0.06));
  border: 1px solid rgba(227,170,69,0.3);
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.98rem; }

/* ===== Client cards ===== */
.client-card {
  background: var(--white);
  border: 1px solid #e9e3d6;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.client-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy-700); }
.client-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== Why choose us ===== */
.why-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why-art img { max-height: 420px; margin: 0 auto; }
.why-list { list-style: none; display: grid; gap: 18px; margin: 6px 0 30px; }
.why-list li { position: relative; padding-left: 40px; }
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
  color: #2a1c05; background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.why-list strong { display: block; font-size: 1.05rem; color: var(--ink); }
.why-list span { color: var(--muted); font-size: 0.97rem; }

/* ===== Stats ===== */
.stats {
  padding: 84px 0;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(227,170,69,0.10), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white);
}
.stats .section-head h2 { color: var(--white); }
.stat { text-align: center; padding: 18px; }
.stat-num {
  display: block;
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted-light); font-size: 0.98rem; }

/* ===== Process ===== */
.process-list { list-style: none; max-width: 820px; margin: 0 auto; position: relative; }
.process-list::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--gold), rgba(227,170,69,0.15));
}
.process-list li { position: relative; display: flex; gap: 24px; padding: 16px 0 28px 0; }
.step-num {
  flex: 0 0 56px; height: 56px; width: 56px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  font-family: "Merriweather", serif; font-weight: 700; font-size: 1.1rem;
  color: #2a1c05; background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 18px rgba(227,170,69,0.4);
}
.process-list h3 { font-size: 1.18rem; margin-bottom: 4px; }
.process-list p { color: var(--muted); }
.section-alt .process-list p { color: #5a6573; }

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.contact-details { list-style: none; margin-top: 34px; display: grid; gap: 22px; }
.contact-details li { display: flex; flex-direction: column; gap: 3px; }
.contact-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 600; color: var(--gold-dark); }
.contact-details a:hover { color: var(--gold-dark); }

.contact-form-wrap {
  background: var(--cream);
  border: 1px solid #e9e3d6;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-700); }
.field input, .field textarea {
  font: inherit; font-size: 0.97rem;
  padding: 12px 14px; border: 1.5px solid #d9d2c4; border-radius: 10px;
  background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,170,69,0.18);
}
.field textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--muted); margin: 4px 0 20px; }
.checkbox input { margin-top: 3px; accent-color: var(--gold-dark); }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #1c7a4a; }
.form-status.err { color: #b8341f; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: var(--muted-light); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.96rem; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.96rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 24px; font-size: 0.86rem; color: #6f8093; }

/* ===== Insights / Blog ===== */
.page-hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(227,170,69,0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 80%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--muted-light); max-width: 620px; margin: 14px auto 0; font-size: 1.08rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid #e9e3d6;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.post-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold-dark); background: rgba(227,170,69,0.14);
  padding: 4px 10px; border-radius: 999px;
}
.post-date { font-size: 0.82rem; color: var(--muted); }
.post-card h2 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; }
.post-card h2 a { transition: color .2s; }
.post-card h2 a:hover { color: var(--gold-dark); }
.post-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.post-card .read-more { margin-top: 16px; font-weight: 600; color: var(--gold-dark); font-size: 0.92rem; }

.posts-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Single article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.article-back { display: inline-block; margin-bottom: 24px; font-weight: 600; color: var(--gold-dark); font-size: 0.92rem; }
.article-head { margin-bottom: 30px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.2; margin: 12px 0; }
.article-body { font-size: 1.07rem; color: #2c3a47; }
.article-body h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.article-body h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 22px 0; padding: 14px 22px; border-left: 4px solid var(--gold);
  background: var(--cream); color: var(--ink); font-style: italic; border-radius: 0 8px 8px 0;
}
.article-cta {
  margin-top: 44px; padding: 28px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid #e9e3d6; text-align: center;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { color: var(--muted); margin-bottom: 16px; }

@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .posts-grid { grid-template-columns: 1fr; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .why-inner { grid-template-columns: 1fr; }
  .why-art { max-width: 420px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px; transform: translateY(-130%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 14px; border: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
