/* =============================================
   ISLAMIYA HOME CARE SERVICES — SHARED STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* === TOKENS === */
:root {
  --slate:       #3D4A5C;
  --slate-dark:  #2A3340;
  --slate-light: #5A6A7E;
  --gold:        #E8951A;
  --gold-light:  #F5B04A;
  --gold-pale:   #FDF3E3;
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --text:        #2C2C2C;
  --text-muted:  #6B7280;
  --border:      #E2DDD6;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
  --radius:      6px;
  --radius-lg:   12px;
  --transition:  0.25s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--slate-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* === LAYOUT === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,149,26,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-slate {
  background: var(--slate);
  color: var(--white);
}
.btn-slate:hover {
  background: var(--slate-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-dark);
}
.nav-logo-text .brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 12px; padding: 10px 22px; font-size: 0.83rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-header p { margin-top: 16px; font-size: 1.05rem; }

/* === DIVIDER === */
.gold-rule {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 2px;
}
.gold-rule-left {
  margin-left: 0;
}

/* === CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* === FOOTER === */
footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,0.75);
}
.footer-top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-brand img {
  height: 64px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  display: block;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-col .contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--gold); }
.footer-credit { font-size: 0.78rem; }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--gold-light); }

/* === SHARED PHOTO STRIP (full-bleed image band) === */
.photo-strip {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-top: 3px solid var(--gold);
}
.photo-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%; /* fallback; pages set a precise value inline per photo */
  filter: saturate(0.92) contrast(1.04) brightness(0.98);
}
.photo-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(42,51,64,0.28) 0%, rgba(232,149,26,0.05) 45%, rgba(20,24,30,0.15) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.photo-strip-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  min-height: 45%;
  display: flex;
  align-items: flex-end;
  padding: 32px 5vw 36px;
  background: linear-gradient(0deg, rgba(20,24,30,0.88) 0%, rgba(20,24,30,0.5) 55%, transparent 100%);
}
.photo-strip-caption p {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
@media (max-width: 700px) {
  .photo-strip { height: 340px; }
}

/* === SHARED IMAGE CARD (rounded photo w/ shadow) === */
.img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(42,51,64,0.08);
}
.img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(42,51,64,0.16) 0%, rgba(232,149,26,0.04) 55%, transparent 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.03) brightness(1.02);
}

/* === SHARED PAGE HERO (about, FAQ, contact) === */
.page-hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 100%);
  padding: 140px 0 72px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === RESPONSIVE NAV === */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 32px; }
  .footer-col h5 { margin-bottom: 14px; }
  .footer-col ul li { margin-bottom: 6px; }
  section { padding: 60px 0; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
