/* =========================================================
   Marian Legal Group — Modern Redesign
   Brand: deep forest #1F392C · gold #E3A24E · navy footer
   ========================================================= */

:root {
  --green: #1f392c;
  --green-deep: #15261d;
  --green-soft: #2a4a3a;
  --gold: #e3a24e;
  --gold-soft: #f5d08a;
  --gold-dim: rgba(227, 162, 78, 0.18);
  --navy: #1e2a4a;
  --navy-soft: #2e3e77;
  --cream: #f7f4ef;
  --sand: #efe8dc;
  --white: #ffffff;
  --ink: #141a17;
  /* Stronger contrast for body text on cream/light surfaces */
  --muted: #3f4742;
  --muted-soft: #4a524d;
  /* Text on dark backgrounds — keep near-white for readability */
  --on-dark: #f7f5f1;
  --on-dark-soft: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.82);
  --line: rgba(31, 57, 44, 0.12);
  --shadow: 0 20px 50px rgba(21, 38, 29, 0.12);
  --shadow-sm: 0 8px 24px rgba(21, 38, 29, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 76px;
  --font: "Vazirmatn", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 15.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-deep);
  color: var(--on-dark-soft);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.topbar-links a:hover {
  color: var(--gold);
}

.topbar-social {
  display: flex;
  gap: 0.5rem;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.topbar-social a:hover {
  background: var(--gold);
  color: var(--green-deep);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(21, 38, 29, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background: var(--gold-dim);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d4923a 100%);
  color: var(--green-deep);
  box-shadow: 0 8px 24px rgba(227, 162, 78, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(227, 162, 78, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: 12px;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted-soft);
  font-size: 1.02rem;
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-deep) 0%, var(--green) 45%, var(--green-soft) 100%);
  color: var(--on-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(227, 162, 78, 0.18), transparent),
    radial-gradient(ellipse 40% 40% at 90% 20%, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("assets/images/pattern.png");
  background-size: 280px;
  mix-blend-mode: overlay;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content .eyebrow {
  background: rgba(227, 162, 78, 0.28);
  color: #ffe2a8;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.hero h1 em {
  font-style: normal;
  color: #ffd78a;
  position: relative;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--on-dark-soft);
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.hero-lead strong {
  color: #ffe2a8;
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 440px;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-num,
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffe2a8;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--on-dark-soft);
  margin-top: 0.25rem;
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-main-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

.hero-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.hero-badge img {
  width: 40px;
  height: auto;
}

.hero-badge strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
}

.hero-badge span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual > img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-float {
  position: absolute;
  bottom: -1.5rem;
  left: -1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-float-item {
  background: var(--green);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 160px;
}

.about-float-item.gold {
  background: linear-gradient(135deg, var(--gold), #c9882e);
  color: var(--green-deep);
}

.about-float-item .num {
  font-size: 1.75rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.about-float-item span:last-child {
  font-size: 0.82rem;
  opacity: 0.9;
}

.about-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  color: var(--green);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.about-content > p {
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.check-list {
  margin-bottom: 2rem;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 0;
  padding-right: 1.75rem;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0.45rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------- Promo ---------- */
.promo {
  padding: 2rem 0 1rem;
  background: var(--white);
}

.promo-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.promo-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 22, 17, 0.9) 0%, rgba(21, 38, 29, 0.45) 70%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  color: #ffffff;
}

.promo-overlay .badge {
  display: inline-block;
  width: fit-content;
  background: var(--gold);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.promo-overlay h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 0.5rem;
  max-width: 14em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.promo-cta {
  color: #ffe2a8;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- Services ---------- */
.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-dim), rgba(31, 57, 44, 0.08));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 500;
}

/* ---------- Products ---------- */
.products {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-img img {
  transform: scale(1.06);
}

.discount {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--green);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  z-index: 1;
}

.discount.free {
  background: #2e7d4f;
}

.product-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-body h3 {
  font-size: 0.95rem;
  color: var(--green);
  line-height: 1.55;
  flex: 1;
}

.product-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.5rem;
}

.product-price del {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-price strong {
  font-size: 1.15rem;
  color: var(--green);
}

.product-price .free-price {
  color: #2e7d4f;
}

.currency {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process {
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--on-dark);
}

.process .section-head h2 {
  color: #ffffff;
}

.process .section-head p {
  color: var(--on-dark-soft);
}

.process .eyebrow {
  background: rgba(227, 162, 78, 0.28);
  color: #ffe2a8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.process-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffe2a8;
  line-height: 1;
  margin-bottom: 1rem;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.process-card p {
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.link-arrow {
  color: #ffe2a8;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: #ffffff;
}

/* ---------- Team ---------- */
.team {
  background: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.15rem 1.15rem;
  background: linear-gradient(transparent, rgba(10, 18, 14, 0.95));
  color: #ffffff;
}

.team-info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.team-info span {
  font-size: 0.82rem;
  color: #ffe2a8;
  font-weight: 600;
}

/* ---------- YouTube ---------- */
.youtube-cta {
  padding: 2rem 0;
  background: var(--white);
}

.yt-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.yt-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.yt-banner img {
  width: 100%;
}

/* ---------- Blog ---------- */
.blog {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-img {
  display: block;
  aspect-ratio: 420/294;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.blog-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.blog-body h3 {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.blog-body h3 a {
  color: var(--green);
  transition: color 0.2s;
}

.blog-body h3 a:hover {
  color: var(--gold);
}

.blog-body time {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 800;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.testimonial-card p {
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.testimonial-author {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--green);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.faq-intro p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.faq-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: var(--sand);
}

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--on-dark);
}

.contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(227, 162, 78, 0.35),
    transparent
  );
  pointer-events: none;
}

.contact .eyebrow {
  background: rgba(227, 162, 78, 0.28);
  color: #ffe2a8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 1rem;
  line-height: 1.45;
  color: #ffffff;
}

.contact-info > p {
  color: var(--on-dark-soft);
  margin-bottom: 2rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-list a,
.contact-list span {
  color: #ffffff;
  font-weight: 700;
}

.contact-list a:hover {
  color: #ffe2a8;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-row a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.2s, color 0.2s;
}

.social-row a:hover {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--gold);
}

.contact-form {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  background: white;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.85rem;
}

.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Site Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--on-dark-soft);
  padding: 4rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(227, 162, 78, 0.22);
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr;
  gap: 2.5rem 2rem;
  padding-bottom: 2.75rem;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  flex-shrink: 0;
}

.footer-brand > p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--on-dark-muted);
  max-width: 30em;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--gold);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(227, 162, 78, 0.35);
  width: fit-content;
}

.footer-col a,
.footer-col span {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
}

.footer-col a {
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: #ffe2a8;
  transform: translateX(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.25rem 0 1.75rem;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

.footer-bottom p {
  margin: 0;
}

.redesign-note {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Float actions ---------- */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 90;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn.call {
  background: linear-gradient(135deg, var(--gold), #c9882e);
  color: var(--green-deep);
}

.float-btn.tg {
  background: #2aabee;
}

.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-3px);
  background: var(--green-soft);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    gap: 0.25rem;
  }

  .header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-main-img {
    aspect-ratio: 4/5;
  }

  .services-grid,
  .process-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-float {
    left: 0.5rem;
    bottom: -1rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-stats {
    max-width: none;
  }

  .stat-num,
  .stat-suffix {
    font-size: 1.25rem;
  }

  .services-grid,
  .process-grid,
  .blog-grid,
  .products-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .site-footer {
    padding-top: 3rem;
    padding-bottom: 4.5rem; /* space above floating action buttons */
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  .promo-overlay {
    background: linear-gradient(0deg, rgba(21, 38, 29, 0.9) 0%, rgba(21, 38, 29, 0.4) 100%);
    justify-content: flex-end;
  }

  .header-actions .btn {
    display: none;
  }

  .topbar-social {
    display: none;
  }

  .contact-form {
    padding: 1.35rem;
  }

  .float-actions {
    bottom: 5rem;
    left: 1rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }
}

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

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ========== Multi-page content styles ========== */
.page-hero {
  background: linear-gradient(145deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--on-dark);
  padding: 2.75rem 0 2.25rem;
}

.page-hero h1 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 0.75rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.breadcrumb a {
  color: var(--on-dark-soft);
  transition: color 0.2s;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #ffe2a8;
}

.bc-sep {
  opacity: 0.45;
  margin: 0 0.15rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.content-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sand);
}

.content-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.content-card:hover .content-card-img img {
  transform: scale(1.05);
}

.content-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.content-card-body h3 {
  font-size: 1rem;
  line-height: 1.55;
}

.content-card-body h3 a {
  color: var(--green);
}

.content-card-body h3 a:hover {
  color: var(--gold);
}

.content-card-body p {
  color: var(--muted-soft);
  font-size: 0.92rem;
  flex: 1;
  font-weight: 500;
}

.content-card-body time {
  font-size: 0.8rem;
  color: var(--muted);
}

.section-intro {
  padding: 1.5rem 0 0;
  color: var(--muted);
  max-width: 48rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0 0;
}

.chip {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--green-deep);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

.article-layout {
  max-width: 820px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.article-meta time {
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: auto;
}

.article-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.article-featured img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.prose,
.article-content {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.95;
}

.prose h1, .prose h2, .prose h3, .prose h4,
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
  color: var(--green);
  line-height: 1.45;
  margin: 1.75rem 0 0.75rem;
  font-weight: 800;
}

.prose p, .article-content p {
  margin-bottom: 1rem;
  color: var(--ink);
}

.prose ul, .prose ol,
.article-content ul, .article-content ol {
  margin: 0 0 1.15rem 0;
  padding-right: 1.35rem;
  color: var(--ink);
}

.prose li, .article-content li {
  margin-bottom: 0.4rem;
  list-style: disc;
}

.prose a, .article-content a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img, .article-content img {
  border-radius: 14px;
  margin: 1.25rem 0;
  max-width: 100%;
  height: auto;
}

.prose blockquote, .article-content blockquote {
  border-right: 4px solid var(--gold);
  margin: 1.5rem 0;
  padding: 0.75rem 1.15rem;
  background: var(--gold-dim);
  border-radius: 0 12px 12px 0;
  color: var(--green);
}

.prose table, .article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.prose th, .prose td,
.article-content th, .article-content td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: right;
}

.prose th, .article-content th {
  background: var(--cream);
  color: var(--green);
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}

.article-cta p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.product-layout .product-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.product-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail-info h2 {
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.product-detail-info .lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.services-grid a.service-card {
  color: inherit;
  display: block;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-layout .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 2rem 0 1.5rem;
  }
}

/* ========== Product page readability ========== */
.product-page {
  background: var(--cream);
  color: var(--ink);
}

.product-page .product-layout {
  background: transparent;
}

.product-page .product-detail-grid {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.product-page .product-detail-info h2 {
  color: var(--green);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  font-weight: 800;
}

.product-page .product-detail-info .lead {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 500;
  opacity: 1;
}

.product-page .form-note {
  color: var(--muted-soft);
  font-weight: 500;
}

.product-page .product-body,
.product-page .article-content,
.product-page .prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.product-page .product-body h1,
.product-page .product-body h2,
.product-page .product-body h3,
.product-page .product-body h4,
.product-page .prose h1,
.product-page .prose h2,
.product-page .prose h3,
.product-page .prose h4 {
  color: var(--green);
}

.product-page .product-body p,
.product-page .product-body li,
.product-page .prose p,
.product-page .prose li {
  color: var(--ink);
  font-weight: 500;
}

.product-page .product-body a,
.product-page .prose a {
  color: #b87820;
  font-weight: 700;
}

.product-page .product-body hr,
.product-page .prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

