/* Nodsites house style — Palette D: Warm Blush */
:root {
  --primary: #9C5149;
  --accent: #D9A796;
  --bg: #FBF7F4;
  --surface: #FFFFFF;
  --text: #33251F;
  --muted: #7A6A62;
  --accent-soft: rgba(217, 167, 150, .18);
  --accent-line: rgba(217, 167, 150, .45);
  --shadow: 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-lift: 0 12px 32px rgba(156, 81, 73, .12);
  --radius: 16px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1120px;
}
html[lang="ar"] {
  --font-head: "Amiri", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--primary); line-height: 1.22; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: 4rem; }
@media (min-width: 768px) { section { padding-block: 5.5rem; } }
.section-surface { background: var(--surface); }

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: -100px;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Eyebrow — with a short accent rule before it */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}
html[lang="ar"] .eyebrow { letter-spacing: .02em; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--text); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-light { background: var(--surface); color: var(--primary); border: 2px solid var(--surface); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--text); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--primary); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--accent-line);
  box-shadow: 0 2px 12px rgba(156, 81, 73, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .8rem;
}
.brand { text-decoration: none; line-height: 1.2; }
.brand .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  display: block;
}
.brand .brand-sub {
  font-size: .7rem;
  color: var(--muted);
  display: block;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[lang="ar"] .brand .brand-sub { letter-spacing: 0; }
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }
.header-actions { display: none; align-items: center; gap: 1.1rem; margin-inline-start: auto; }
.lang-switch { font-size: .85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.lang-switch a { text-decoration: none; color: var(--muted); padding-inline: .15rem; transition: color .15s; }
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current="true"] { color: var(--primary); border-bottom: 2px solid var(--accent); }
.nav-toggle {
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: .55rem .6rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--primary); display: block; border-radius: 2px; }
.mobile-nav { display: none; background: var(--surface); border-top: 1px solid var(--accent-line); padding: 1rem 1.25rem 1.5rem; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--accent-soft); }
.mobile-nav a { display: block; padding: .75rem 0; text-decoration: none; color: var(--text); font-weight: 500; }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .btn { width: 100%; margin-bottom: .9rem; }
@media (min-width: 768px) {
  .main-nav { display: block; margin-inline-start: auto; }
  .header-actions { display: flex; margin-inline-start: 1.5rem; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  padding-block: 3.5rem 4rem;
  background:
    radial-gradient(42rem 42rem at 85% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-media { order: -1; }
.hero-title { margin-bottom: .35em; }
.hero-value {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--text);
  margin-bottom: .7em;
}
.hero-support { color: var(--muted); margin-bottom: 1.6em; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.pill {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--primary);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero-media { order: 2; }
}

/* Portrait treatment — layered accent frame */
.portrait-frame { position: relative; display: block; }
.portrait-frame img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  width: 100%;
  height: auto;
  z-index: 1;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transform: translate(14px, 14px);
  z-index: 0;
}
html[dir="rtl"] .portrait-frame::before { transform: translate(-14px, 14px); }
@media (prefers-reduced-motion: no-preference) {
  .portrait-frame::before { transition: transform .3s ease; }
  .portrait-frame:hover::before { transform: translate(9px, 9px); }
  html[dir="rtl"] .portrait-frame:hover::before { transform: translate(-9px, 9px); }
}

/* Stat strip */
.stat-strip { background: var(--primary); padding-block: 2.5rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; text-align: center; }
.stat-grid > div { padding-inline: .5rem; }
.stat-value {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-top: .35rem;
}
html[lang="ar"] .stat-label { letter-spacing: .02em; }
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid > div + div { border-inline-start: 1px solid rgba(217, 167, 150, .35); }
}

/* Split sections */
.split-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.checklist li { padding-inline-start: 2.1rem; position: relative; margin-bottom: .75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .32rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center/60% no-repeat;
}
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .1em; transition: border-color .15s, color .15s; }
.text-link:hover { border-bottom-color: var(--primary); }

/* Cards */
.cards-grid { display: grid; gap: 1.75rem; margin-block: 2.5rem; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.9rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-top-color: var(--primary); }
.card p { color: var(--muted); font-size: .95rem; }
.card .text-link { font-size: .92rem; }

/* Testimonials */
.testimonial { position: relative; }
.testimonial::before {
  content: "\201C";
  position: absolute;
  inset-inline-end: 1.4rem;
  top: .4rem;
  font-family: var(--font-head);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-soft);
  pointer-events: none;
}
.stars { color: var(--accent); font-size: 1.05rem; letter-spacing: .18em; margin-bottom: .9rem; }
.quote { font-family: var(--font-head); font-style: italic; font-size: 1.02rem; color: var(--text); }
.quote-name { font-weight: 600; margin-bottom: 0; }
.quote-context { color: var(--muted); font-size: .85rem; }
.disclosure { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .75rem; font-style: italic; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(36rem 20rem at 15% 100%, rgba(217, 167, 150, .22), transparent 65%),
    var(--primary);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.cta-band p { color: var(--accent); max-width: 42rem; margin-inline: auto; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.75rem; margin-bottom: 0; }

/* Section headers */
.section-head { max-width: 46rem; margin-bottom: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }
.center-actions { text-align: center; margin-top: 2.25rem; }

/* Timeline */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; border-inline-start: 2px solid var(--accent-line); }
.timeline li { position: relative; padding-inline-start: 2rem; padding-bottom: 1.75rem; }
.timeline li:last-child { padding-bottom: .25rem; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -8px;
  top: .4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.timeline strong { display: block; color: var(--primary); font-family: var(--font-head); font-size: 1.1rem; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* Service sections */
.service-block {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.25rem 1.9rem;
  margin-bottom: 1.75rem;
  scroll-margin-top: 6.5rem;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.service-block:hover { box-shadow: var(--shadow-lift); border-inline-start-color: var(--primary); }
.service-block h2 { font-size: 1.45rem; margin-bottom: .55rem; }
.service-block p:last-child { margin-bottom: 0; color: var(--muted); }

/* Tables */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table caption { text-align: start; font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); font-weight: 700; margin-bottom: .85rem; }
.hours-table th, .hours-table td { padding: .75rem 1rem; text-align: start; font-size: .95rem; border-bottom: 1px solid var(--accent-soft); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { color: var(--primary); font-weight: 600; }

/* Forms */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  max-width: 34rem;
}
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .75rem .95rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.form-note { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; font-style: italic; }
.honey { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
button.btn { font-family: var(--font-body); cursor: pointer; }

/* Contact page */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.map-frame { border: 1px solid var(--accent-line); width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.25rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem;
  margin-bottom: 1.5rem;
}
.info-card h2 { font-size: 1.3rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card address { font-style: normal; }

/* Missing-data placeholder */
.missing { background: #fff3cd; color: #7a5c00; padding: .05em .4em; border-radius: 4px; font-size: .9em; font-style: normal; }

/* Footer */
.site-footer {
  background: var(--primary);
  border-top: 4px solid var(--accent);
  color: #fff;
  padding-block: 3.75rem 1.5rem;
}
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 2.75rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.site-footer h2 { color: var(--accent); font-size: .85rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
html[lang="ar"] .site-footer h2 { letter-spacing: .02em; }
.footer-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; display: block; margin-bottom: .2rem; }
.footer-spec { color: var(--accent); font-size: .9rem; display: block; margin-bottom: .9rem; }
.site-footer p, .site-footer li, .site-footer address { color: #fff; opacity: .92; font-size: .93rem; font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #fff; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.social-row { display: flex; gap: .9rem; margin-top: 1rem; }
.social-row a svg { width: 24px; height: 24px; fill: #fff; transition: fill .15s; }
.social-row a:hover svg { fill: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 1.4rem; text-align: center; }
.footer-bottom p { font-size: .85rem; margin-bottom: .35rem; }
.nodsites-credit { font-size: .78rem; opacity: .75; margin: 0; }
.nodsites-credit a { text-decoration: underline; }

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Error / thanks pages */
.center-page { text-align: center; padding-block: 5.5rem; }
.center-page .eyebrow { justify-content: center; }
.center-page .eyebrow::after { content: ""; width: 2.25rem; height: 2px; background: var(--accent); flex: none; }
.center-page .big { font-size: clamp(3.5rem, 10vw, 6rem); margin-bottom: .1em; }
.center-page .center-actions .btn { margin-inline: .35rem; margin-block: .35rem; }
