:root{
  /* new blue + light gray palette requested */
  --navy: #123e8a;          /* deep blue for headings/text */
  --blue-600: #1e63c8;      /* primary gradient start */
  --blue-400: #5fb0ff;      /* primary gradient end */
  --muted-blue: #3f6ea8;    /* secondary text */
  --bg:#f5f7fa;             /* very light gray page bg */
  --card-bg: #ffffff;       /* cards stay white */
  --light-border: #e6ecf6;  /* subtle borders */
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(17,57,122,0.06);
  --muted: #6b7788;
  --container-pad: 1rem;
}

/* Reset & base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--navy);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

.container{max-width:var(--max-width);margin:0 auto;padding:0 1rem}
.section{padding:2.25rem 0}

/* Reduce vertical gap specifically between the About section and the centered credentials card */
#about.section { padding-bottom: 1rem; }
.full-width-credentials { padding-top: 0.5rem; }
.credentials-card { margin: 0.5rem auto; }
.card{background:var(--card-bg);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem}

/* Header / Nav */
.site-header{position:sticky;top:0;background:#0e2346;backdrop-filter:saturate(120%) blur(6px);border-bottom:1px solid rgba(255,255,255,0.04);z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:0.75rem 0}
.brand{display:flex;align-items:center;gap:0.6rem;font-weight:700;color:#ffffff;font-size:1.05rem}
.brand-logo{display:inline-block;border-radius:8px;transform:translateY(-1px)}
.brand-name{font-weight:700;color:#ffffff}
/* Language dropdown */
.lang-switch{position:relative}
.lang-toggle{background:transparent;color:#cfe3ff;border:1px solid rgba(255,255,255,0.06);padding:0.35rem 0.6rem;border-radius:8px;cursor:pointer}
.lang-menu{position:absolute;right:0;top:calc(100% + 8px);background:var(--card-bg);border:1px solid var(--light-border);box-shadow:var(--shadow);border-radius:8px;list-style:none;padding:0;margin:0;min-width:140px}
.lang-menu li{padding:0}
.lang-menu button{display:block;width:100%;padding:0.6rem 0.8rem;border:0;background:transparent;text-align:left;cursor:pointer}
.lang-menu button:hover{background:rgba(11,27,58,0.04)}
.lang-menu.hidden{display:none}

/* RTL safe adjustments */
[dir="rtl"] .brand{direction:rtl}
[dir="rtl"] .lang-menu{right:auto;left:0}
.nav-toggle{display:block;background:none;border:0;font-size:1.25rem;padding:0.5rem;cursor:pointer;color:#fff}
.site-nav{display:none}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:0.5rem;align-items:center}
.site-nav a{display:inline-block;padding:0.45rem 0.75rem;border-radius:8px;color:#cfe3ff;text-decoration:none;font-weight:600}
.site-nav a:hover{background:rgba(255,255,255,0.03)}
.site-nav a.active{background:transparent;color:#9aa6b8;box-shadow:none}
.social-btn{background:var(--gold);color:var(--navy);padding:0.45rem 0.9rem;border-radius:999px;font-weight:700}

/* About */
.about-grid{display:grid;grid-template-columns:1fr;gap:1rem;align-items:stretch;max-width:900px;margin:0 auto}
.about-text h1{margin-top:0;font-size:1.6rem;color:var(--navy)}
.about-text p{font-size:1.05rem;line-height:1.85;color:var(--muted);max-width:78ch;overflow-wrap:break-word;word-break:break-word;hyphens:auto}
.portrait.card{padding:0;background:transparent;box-shadow:none;display:flex;align-items:stretch;justify-content:center;overflow:hidden;align-self:start}
/* Constrain portrait so it doesn't grow and create gaps */
.portrait{max-width:360px;width:100%}
.portrait img{width:100%;height:auto;max-height:420px;display:block;border-radius:10px;border:1.333px solid var(--blue-600);box-sizing:border-box;object-fit:cover;object-position:center 8%;transition:none}
.credentials-card{background:var(--card-bg);color:var(--navy);padding:1.25rem;margin:1rem auto;border-radius:12px;border:1px solid var(--light-border);max-width:36rem}
.credentials-card h3{margin-top:0;color:var(--blue-600);text-align:center}
.credentials-card ul{margin:0;padding-left:1.1rem}
.credentials-card li{margin:0.5rem 0;line-height:1.7;font-size:1.03rem;color:var(--muted)}

/* Hover / focus effect: make cards blend with page bg and show blue border like the portrait */

.credentials-card:hover, .credentials-card:focus-within,
.service.card:hover, .service.card:focus-within,
.booking-card:hover, .booking-card:focus-within {
  background: var(--bg);
  border: 1.333px solid var(--blue-600);
  box-shadow: none;
}

/* Keep inner content readable when background switches */
.credentials-card:hover h3, .service.card:hover h3, .booking-card:hover h3 {
  color: var(--blue-600);
}

/* Services */
.services-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
.service{display:flex;gap:0.75rem;align-items:flex-start;padding:1rem}
.service-icon{flex:0 0 48px}
.service h3{margin:0 0 0.35rem 0;font-size:1rem}

/* Consultation & Contact layouts */
.section-grid{display:grid;grid-template-columns:1fr;gap:1rem}
.checklist{list-style:none;padding:0;margin:0;font-weight:600;color:var(--muted)}
.form-card label{display:block;font-size:0.9rem;margin:0.5rem 0}
.form-card input,.form-card select,.form-card textarea{width:100%;padding:0.6rem;border-radius:8px;border:1px solid #e6e9ee}
.btn-primary{background:var(--gold);color:var(--navy);border:0;padding:0.75rem 1rem;border-radius:10px;font-weight:700;cursor:pointer}

/* Schedule table and booking */
.table-wrap table{width:100%;border-collapse:collapse}
.schedule th,.schedule td{padding:0.6rem;border-bottom:1px solid #f1f3f5;text-align:left}
.booking-card .phone{display:flex;align-items:center;gap:0.5rem}
.booking-card a{color:var(--navy);font-weight:700;text-decoration:none}

/* Map widget */
.map-wrap{padding:0}
.map-inner{position:relative;height:280px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--light-border);}
.map-inner iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* full invisible overlay to make the map clickable and non-interactive */
.map-overlay{position:absolute;inset:0;display:block;background:transparent}


/* Ensure contact grid columns align */
.section-grid.contact-grid{align-items:stretch}
.booking-card{display:flex;flex-direction:column;gap:0.35rem;justify-content:center;padding:1rem}
/* force booking widget content to be left-aligned even under RTL */
.booking-card, .booking-card *{text-align:left}
.booking-card h3{margin:0 0 0.5rem}
/* when page is RTL, keep booking values left but align the title to the right */
[dir="rtl"] .booking-card h3{direction:rtl;text-align:right}

.booking-card .label{font-weight:400;margin-right:0.4rem;font-size:1rem;color:var(--muted)}
.booking-card .value{font-weight:400;font-size:1rem;color:var(--navy)}
.booking-card a{color:var(--navy);text-decoration:none}
.booking-card .address{margin-top:0.1rem}

/* Make map & card align and taller on larger screens */
@media(min-width:700px){
  .map-inner{height:340px}
  .booking-card{padding:1.75rem}
  /* make about use more width on wider screens */
  .about-grid{grid-template-columns:1fr 360px}
  .about-image{display:flex;align-items:flex-start}
  .portrait{width:100%;height:auto;max-width:360px}
  .portrait img{width:100%;height:auto;max-height:420px;object-position:center 8%}
  .about-text p{font-size:1.12rem;line-height:1.9}
  .credentials-card{font-size:1.05rem}
}



/* Footer */
.site-footer{margin-top:2rem;padding:1.5rem 0;background:transparent}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.copyright{text-align:center;color:var(--muted);font-size:0.9rem;margin-top:1rem}

/* Toast */
.toast{position:fixed;right:1rem;bottom:1rem;background:var(--navy);color:white;padding:0.75rem 1rem;border-radius:10px;box-shadow:var(--shadow);display:none}

/* Utilities */
.hidden{display:none}

/* visually hidden (screen-reader only) */
.sr-only{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:-1px}

/* force left-to-right for phone/email values */
.ltr{direction:ltr;unicode-bidi:embed}

/* Floating booking widget */
.floating-booking{position:fixed;left:16px;transform:none;top:14px;z-index:60;background:var(--blue-600);color:white;padding:0.5rem 0.9rem;border-radius:999px;box-shadow:0 8px 20px rgba(30,99,200,0.18);transition:top 0.5s cubic-bezier(.22,.9,.35,1),opacity 0.3s;opacity:1}
.floating-booking.hidden{opacity:0;pointer-events:none}
.floating-booking-link{color:#fff;text-decoration:none;font-weight:800}

/* When pinned near the booking card, make it slightly smaller */
.floating-booking.pinned{transform:scale(0.96);background:var(--blue-400)}

/* Keep floating booking text left-to-right so numbers/emails don't reorder in RTL pages */
.floating-booking, .floating-booking * { direction: ltr; unicode-bidi: embed; text-align: left }

/* Larger screens */
@media(min-width:700px){
  .nav-toggle{display:none}
  .site-nav{display:block}
  .about-grid{grid-template-columns:1fr 360px}
  .services-grid{grid-template-columns:repeat(3,1fr)}
  .section-grid.consult-grid{grid-template-columns:1fr 420px}
  .section-grid.contact-grid{grid-template-columns:1fr 360px}
  .footer-grid{grid-template-columns:1fr 320px}
}

@media(min-width:1000px){
  .services-grid{grid-template-columns:repeat(3,1fr);gap:1.25rem}
}

/* Services typography hierarchy: emoji > title > text */
.services-grid .service .service-icon {
  font-size: 2.6rem;     /* emoji largest */
  line-height: 1;
  flex: 0 0 56px;        /* wider box so big emoji fits */
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.services-grid .service h3 {
  font-size: 1.25rem;    /* title medium */
  margin: 0.15rem 0 0.35rem;
}

.services-grid .service p {
  font-size: 0.95rem;    /* body smaller */
  margin: 0;
  color: var(--muted);
}

/* Scale up a bit on large screens */
@media (min-width: 1000px) {
  .services-grid .service .service-icon { font-size: 3rem; flex-basis: 64px; height: 64px; }
  .services-grid .service h3 { font-size: 1.35rem; }
}

/* --- Services: 4 per row, centered, icon > title > text --- */
.services-grid { grid-template-columns: 1fr; gap: 1.25rem; }

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Ensure portrait has no animation */
.portrait img { transition: none; }

/* Full-width credentials container so the card centers across the viewport */
.full-width-credentials { width: 100%; display: flex; justify-content: center; padding: 0 1rem; }
.full-width-credentials .credentials-card { max-width: 900px; width: 100%; }

.service {
  display: flex;
  flex-direction: column;       /* icon on top, then title, then text */
  align-items: center;          /* center horizontally */
  text-align: center;           /* center text */
  gap: 0.6rem;
  padding: 2rem 1.5rem;         /* roomy cards like the screenshot */
}

.service .service-icon {
  font-size: 2.2rem;            /* icon largest */
  line-height: 1;
  margin-bottom: 0.25rem;
}

.service h3 {
  font-size: 1.2rem;            /* title a bit larger than body, not huge */
  font-weight: 800;
  margin: 0.1rem 0 0.4rem;
  color: var(--navy);
}

.service p {
  font-size: 1rem;              /* body slightly smaller */
  margin: 0;
  color: var(--muted);
}

/* Optional: slightly larger on big screens */
@media (min-width: 1200px) {
  .service .service-icon { font-size: 2.4rem; }
  .service h3 { font-size: 1.25rem; }
}

/* RTL: site-wide rules applied when a page sets dir="rtl" (keeps numbers/emails LTR) */
[dir="rtl"] body,
[dir="rtl"] .container { direction: rtl; }

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p { text-align: right; direction: rtl; }

[dir="rtl"] .card,
[dir="rtl"] .about-text,
[dir="rtl"] .credentials-card,
[dir="rtl"] .map-wrap { text-align: right; }

[dir="rtl"] .services-grid .service { align-items: flex-end; text-align: right; }
[dir="rtl"] .services-grid .service .service-icon { margin-left: 0; margin-right: 0; }
[dir="rtl"] .services-grid .service h3,
[dir="rtl"] .services-grid .service p { text-align: right; }

[dir="rtl"] ul { padding-right: 1.1rem; padding-left: 0; }
[dir="rtl"] .credentials-card ul { padding-right: 1.1rem; padding-left: 0; }

/* Keep booking values and links LTR so numbers/emails render correctly; title remains RTL */
[dir="rtl"] .booking-card, [dir="rtl"] .booking-card * { direction: ltr; unicode-bidi: embed; text-align: left }
[dir="rtl"] .booking-card h3 { direction: rtl; text-align: right }

[dir="rtl"] .site-footer .copyright { text-align: right }

