/* ============================================
   Bayt Al-Siyana | Main Stylesheet
   Professional Appliance Repair in Riyadh
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary-dark: #4C3D19;
  --secondary-dark: #354024;
  --secondary-green: #889063;
  --warm-beige: #CFBB99;
  --light-bg: #E5D7C4;
  --off-white: #f9f6f0;
  --text-dark: #1e1a0e;
  --text-medium: #3d3627;
  --text-light: #5a5240;
  --border-light: #e3dbcd;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 28px rgba(76, 61, 25, 0.06);
  --radius-sm: 1.5rem;
  --radius-md: 2rem;
  --radius-lg: 2.5rem;
  --transition: 0.2s ease;
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 80px;
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.5rem;
  }
}

p {
  color: var(--text-medium);
  margin-bottom: 0.75rem;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--secondary-dark);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  background-color: #2a321d;
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-dark);
  color: var(--secondary-dark);
}

.btn-outline:hover {
  background: var(--secondary-dark);
  color: #fff;
}

.btn-wa {
  background-color: #25D366;
  color: #fff;
}

.btn-wa:hover {
  background-color: #1da851;
}

.btn-wa:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 2px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Header ===== */
.header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}



.logo:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 4px;
}

/* ===== Navigation ===== */
.nav {
  display: none;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  padding: 0.3rem 0;
}

.nav a:hover {
  color: var(--secondary-green);
}

.nav a:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 4px;
}

.nav .btn {
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
}

.hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0.3rem;
}

.hamburger:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 2px;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0;
  background: #fff;
  border-top: 1px solid #eee;
  width: 100%;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.3rem 0;
}

.mobile-nav a:hover {
  color: var(--secondary-green);
}

.mobile-nav a:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 4px;
}

.mobile-nav .btn {
  width: fit-content;
}

/* ===== Hero ===== */
.hero {
  background: var(--light-bg);
  padding: 3rem 0 2.5rem;
  background-image: radial-gradient(circle at 10% 30%, rgba(255, 255, 240, 0.4) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-actions .btn {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.hero-actions .phone-link {
  font-weight: 600;
  color: var(--secondary-dark);
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-actions .phone-link:hover {
  text-decoration: underline;
}

.hero-image {
  background: #d6cbbc;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%23cfbb99" rx="16"/><circle cx="200" cy="150" r="80" fill="%23889063" opacity="0.2"/><text x="200" y="160" font-size="70" text-anchor="middle" fill="%234C3D19">🔧</text><text x="200" y="220" font-size="28" text-anchor="middle" fill="%23354024" font-weight="bold">Bayt Al-Siyana</text></svg>');
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Sections ===== */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
  border-bottom: none;
}

.section-sub {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-medium);
  font-size: 1.05rem;
}

.section-alt {
  background: #f3eee6;
}

/* ===== Service Cards ===== */
.service-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid #ede7db;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.service-card .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.8rem;
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid #ece4d6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: box-shadow var(--transition);
}

.why-item:hover {
  box-shadow: var(--shadow-md);
}

.why-item .emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.3rem;
}

.why-item h4 {
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
}

.why-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem 0.8rem;
  text-align: center;
  border: 1px solid #e8dfd0;
  transition: box-shadow var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
}

.process-step .num {
  background: var(--secondary-green);
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  font-weight: 700;
}

/* ===== Emergency ===== */
.emergency {
  background: var(--warm-beige);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  text-align: center;
  margin-top: 1rem;
}

.emergency h3 {
  color: var(--primary-dark);
  font-size: 1.6rem;
}

.emergency .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 2rem;
}

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

.contact-detail {
  background: #fff;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid #e6ddce;
}

.contact-detail p {
  margin: 0.5rem 0;
}

.contact-detail a {
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-detail strong {
  color: var(--primary-dark);
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc5b6;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: #fff;
  font-family: var(--font-family);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--secondary-green);
  outline-offset: 2px;
  border-color: var(--secondary-green);
}

.form-group textarea {
  border-radius: var(--radius-sm);
  min-height: 100px;
  resize: vertical;
}

/* ===== Map Placeholder ===== */
.map-placeholder {
  background: #d8cfbe;
  border-radius: var(--radius-sm);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 500;
  margin-top: 0.8rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: #f0ece2;
  padding: 2.5rem 0 1.8rem;
  margin-top: 2rem;
}

.footer a {
  color: #f0ebdf;
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: #fff;
}

.footer a:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 4px;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer h4 {
  color: #f0ebdf;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid #6a5f47;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #f0ebdf;
}
/* ===== Footer Override ===== */
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.footer p,
.footer a,
.footer span,
.footer div,
.footer .footer-bottom p {
  color: #f0ebdf !important;
}

.footer a:hover {
  color: #ffffff !important;
}

.footer .footer-bottom {
  color: #f0ebdf !important;
}

/* ===== Floating Mobile CTA ===== */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.6rem 0.5rem;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
  border-top: 1px solid #e2d9ca;
  z-index: 100;
}

.mobile-cta a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--primary-dark);
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  min-width: 80px;
}

.mobile-cta a:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 2px;
}

/* Phone Button */
.mobile-cta .call-btn {
  background: var(--secondary-dark);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  flex-direction: row;
  gap: 0.3rem;
  transition: background var(--transition);
}

.mobile-cta .call-btn:hover {
  background: #2a321d;
}

.mobile-cta .call-btn .icon {
  font-size: 1.1rem;
}

.mobile-cta .call-btn .label {
  font-size: 0.85rem;
}

/* WhatsApp Button */
.mobile-cta .wa {
  background: #25D366;
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  flex-direction: row;
  gap: 0.3rem;
}

.mobile-cta .wa:hover {
  background: #1da851;
}

.mobile-cta .wa .icon {
  font-size: 1.1rem;
}

.mobile-cta .wa .label {
  font-size: 0.85rem;
}

@media (min-width: 760px) {
  .mobile-cta {
    display: none;
  }
}

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 1.5rem;
}
.mt-3 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.8rem;
}

.gap-1 {
  gap: 0.8rem;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--secondary-dark);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--text-light);
}

/* ===== Page Headers ===== */
.page-header {
  background: var(--light-bg);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  text-align: center;
}

.page-header p {
  text-align: center;
  max-width: 650px;
  margin: 0.5rem auto 0;
}

/* ===== Services Page Specific ===== */
.service-detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-detail-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid #ede7db;
  box-shadow: var(--shadow-sm);
}

.service-detail-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.service-detail-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
}

.service-detail-card ul li {
  padding: 0.4rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--text-medium);
}

.service-detail-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-green);
  font-weight: 700;
}

/* ===== About Page ===== */
.about-content {
  max-width: 850px;
  margin: 0 auto;
}

.about-content h2 {
  text-align: left;
  margin-top: 2rem;
}

.about-values {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-value-item {
  background: #fff;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ece4d6;
  text-align: center;
}

.about-value-item .emoji {
  font-size: 2rem;
}

/* ===== Why Choose Us Page ===== */
.why-detailed-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .why-detailed-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-detailed-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid #ede7db;
  box-shadow: var(--shadow-sm);
}

.why-detailed-card .emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.why-detailed-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.why-detailed-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Privacy & Terms ===== */
.legal-content {
  max-width: 850px;
  margin: 0 auto;
}

.legal-content h2 {
  text-align: left;
  margin-top: 2rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  color: var(--primary-dark);
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: var(--text-medium);
  margin-bottom: 0.3rem;
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .mobile-cta,
  .footer {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }

  section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #ddd;
  }
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fix: Hide mobile nav by default on all screens */
.mobile-nav {
  display: none !important;
}

/* Only show mobile nav when open class is added */
.mobile-nav.open {
  display: flex !important;
}

/* Ensure desktop nav is visible on large screens */
@media (min-width: 860px) {
  .nav {
    display: flex !important;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* On mobile, hide desktop nav and show hamburger */
@media (max-width: 859px) {
  .nav {
    display: none !important;
  }
  .hamburger {
    display: block !important;
  }
  /* Mobile nav opens via JS toggle */
}

/* ===== Logo with Arabic Text ===== */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
  line-height: 1.2;
  text-decoration: none;
}

.logo-arabic {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-green);
  letter-spacing: 0.2px;
  margin-top: -2px;
}

/* Adjust for mobile */
@media (max-width: 480px) {
  .logo-arabic {
    font-size: 2.0rem;
  }
  .logo-sub {
    font-size: 1.2rem;
  }
}

/* Align hamburger button with logo */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hamburger {
  margin-left: auto;
  padding: 0.3rem 0.5rem;
  font-size: 1.6rem;
}

/* ===== Book a Service Button (Bigger) ===== */
.btn-book {
  padding: 0.9rem 2.8rem !important;  /* More padding */
  font-size: 1.05rem !important;      /* Slightly bigger text */
  min-width: 180px;                    /* Minimum width */
  letter-spacing: 0.5px;               /* Better spacing */
  white-space: nowrap;                 /* Prevent text wrapping */
}

/* For mobile view */
@media (max-width: 480px) {
  .btn-book {
    padding: 0.7rem 1.8rem !important;
    font-size: 0.9rem !important;
    min-width: 140px;
  }
}