@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&display=swap');

:root {
  --navy: #142b35;
  --deep: #0c2028;
  --blue: #014c9f; /* logo blue */
  --gold: #c79d5b;
  --cream: #f7f5ef;
  --ink: #26363b;
  --muted: #68777a;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: 'DM Sans', 'Noto Sans Malayalam', sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
main section { scroll-margin-top: var(--header-h); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header { height: var(--header-h); padding: 0 6%; display: flex; align-items: center; justify-content: space-between; background: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 3px 20px #10242a0b; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-logo { width: 58px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { letter-spacing: 3px; font-size: 20px; color: var(--blue); }
.brand-text small { font-size: 9px; letter-spacing: 1.5px; color: #7c8989; font-weight: 600; }
nav { display: flex; align-items: center; gap: 27px; font-size: 13px; font-weight: 600; }
nav a:hover, .text-link:hover { color: var(--gold); }
.lang-switch { border: 1px solid #d8d2c6; background: #fff; border-radius: 30px; padding: 8px 15px; color: var(--navy); cursor: pointer; font: inherit; }
.menu-toggle { display: none; border: 0; background: none; font-size: 25px; cursor: pointer; }

/* Hero */
.hero { min-height: 650px; position: relative; display: flex; align-items: center; background: var(--deep); color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.03); transition: opacity 1.4s ease, transform 7s linear; }
.hero-slide.is-active { opacity: .6; transform: scale(1.1); }
.hero-dots { position: absolute; z-index: 2; left: calc(10% + 20px); bottom: 40px; display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #ffffffb0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .3s, transform .3s; }
.hero-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0b2029ed 0%, #0b2029b8 55%, #0b202940 100%); }
.hero-content { position: relative; z-index: 1; margin-left: 10%; max-width: 680px; padding: 80px 20px 140px; }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: 2.7px; font-weight: 700; color: var(--gold); }
h1, h2, h3 { font-family: 'Playfair Display', 'Noto Sans Malayalam', serif; line-height: 1.2; }
h1 { font-size: clamp(42px, 6vw, 72px); margin: 22px 0 12px; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 45px); margin: 13px 0 20px; color: var(--navy); }
.hero-place { font-size: 15px; letter-spacing: 1px; }
.hero-copy { font-size: 18px; max-width: 490px; color: #e4e9e8; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; background: var(--gold); color: #172c34; padding: 13px 23px; border: 0; border-radius: 2px; font: 700 13px 'DM Sans', 'Noto Sans Malayalam', sans-serif; letter-spacing: .3px; cursor: pointer; }
.button-light { background: #fff; color: var(--navy); }
.button-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #ffffffb0; }
.button-outline:hover { background: #ffffff1a; }
.hero-verse { position: absolute; right: 7%; bottom: 38px; z-index: 2; max-width: 340px; font-family: 'Playfair Display', 'Noto Sans Malayalam', serif; font-size: 14px; color: #e8e6dc; }
.hero-verse span { font-size: 36px; color: var(--gold); line-height: 0; vertical-align: -12px; margin-right: 2px; }
.hero-verse i { font-style: normal; }
.hero-verse b { display: block; font: 600 10px 'DM Sans', 'Noto Sans Malayalam', sans-serif; letter-spacing: 1px; color: var(--gold); margin-top: 7px; }

/* Shared sections */
.section { padding: 95px 9%; }
.tinted { background: var(--cream); }
.text-link { font-weight: 700; color: #98713c; font-size: 14px; }
.section-note { color: var(--muted); }

/* Welcome – logo-blue band */
.intro { text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #2a73c9 0%, transparent 65%), linear-gradient(160deg, var(--blue) 0%, #0b2f66 100%); }
.intro > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.intro .section-kicker { color: #e8c98f; }
.intro h2 { color: #fff; }
.intro h2::after { content: ""; display: block; width: 60px; height: 2px; margin: 18px auto 0; background: var(--gold); }
.intro .lead { max-width: 790px; color: #dbe6f5; }
.intro .text-link { color: #e8c98f; }
.intro .text-link:hover { color: #fff; }
.lead { max-width: 790px; margin: 0 auto 22px; color: var(--muted); font-size: 17px; }

/* Services */
.services { text-align: center; }
.belief { max-width: 760px; margin: 0 auto; padding: 0; font-family: 'Playfair Display', 'Noto Sans Malayalam', serif; color: var(--navy); font-size: 18px; }
.belief p { margin: 0 0 8px; }
.belief cite { font: 700 11px 'DM Sans', 'Noto Sans Malayalam', sans-serif; letter-spacing: 1.5px; color: var(--gold); font-style: normal; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.info-card { background: #fff; border-bottom: 3px solid transparent; box-shadow: 0 12px 35px #20343a08; overflow: hidden; transition: transform .2s, border-color .2s; }
.info-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.info-card img { display: block; width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 8px 20px 24px; }
.info-card h3, .leader h3 { font-size: 21px; color: var(--navy); margin: 15px 0 10px; }
.info-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* About / history */
.history { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6%; align-items: start; }
.history-image { position: sticky; top: calc(var(--header-h) + 30px); }
.history-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.history-copy p { color: var(--muted); font-size: 15px; }
.scripture { font-family: 'Playfair Display', 'Noto Sans Malayalam', serif; color: #a17c47 !important; font-size: 19px !important; }

/* Leadership */
.leadership { text-align: center; }
.leader-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 38px; }
.leader { background: #fff; padding: 28px 15px 24px; }
.leader img { display: block; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid #fff; box-shadow: 0 0 0 1px #e6dfd2, 0 8px 20px #10242a1a; }
.leader h3 { font-size: 18px; margin: 18px 0 4px; }
.leader p { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.leader-phone { font-size: 13px; color: #98713c; font-weight: 600; white-space: nowrap; }
.leader-phone:hover { color: var(--gold); }

/* Gallery */
.gallery { text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 38px; }
.gallery-grid img { display: block; width: 100%; height: 260px; object-fit: cover; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 14px; }
.contact-copy a:not(.text-link) { color: var(--navy); }
.map { display: block; width: 100%; height: 260px; border: 0; margin-top: 22px; background: #e9e5dc; }
.contact-form { background: #fff; padding: 38px; box-shadow: 0 15px 45px #1a30340b; display: grid; gap: 14px; }
.contact-form h3 { font-size: 27px; color: var(--navy); margin: 0; }
.form-intro { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #d8d2c6; border-radius: 2px; font: 400 14px 'DM Sans', 'Noto Sans Malayalam', sans-serif; color: var(--ink); background: #fdfcf9; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #c79d5b33; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-error { margin: 0; color: #b3261e; font-size: 13px; }
.form-note { margin: 0; color: #879092; font-size: 11px; }

/* Footer */
footer { background: var(--deep); color: #dce4e2; text-align: center; padding: 50px 20px 40px; }
.footer-logo { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 50%; padding: 10px; }
footer .footer-brand { letter-spacing: 3px; font-weight: 700; color: #fff; margin-top: 12px; }
footer .footer-brand small { display: block; font-size: 10px; color: #aebcba; letter-spacing: 2px; }
footer .footer-brand span { color: var(--gold); }
.footer-inspiration { max-width: 640px; margin: 24px auto; }
.footer-inspiration h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: 2.5px; color: var(--gold); }
.footer-inspiration p { margin: 0; font-size: 13px; color: #aebcba; }
footer small { font-size: 10px; color: #82918e; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .info-card { transition: none; }
  .hero-slide { transition: opacity .01s; transform: none !important; }
}

@media (max-width: 1100px) {
  nav { gap: 16px; font-size: 12px; }
  .site-header { padding: 0 4%; }
}

@media (max-width: 900px) {
  .section { padding: 75px 6%; }
  .card-grid, .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .history, .contact { grid-template-columns: 1fr; gap: 35px; }
  .history-image { position: static; }
}

/* The full nav no longer fits beside the logo, so switch to the dropdown menu */
@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .site-header { padding: 0 5%; }
  .brand-logo { width: 46px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 8px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 20px 6%; flex-direction: column; align-items: flex-start; font-size: 14px; box-shadow: 0 12px 20px #10242a12; }
  nav.open { display: flex; }
}

@media (max-width: 650px) {
  .hero { min-height: 640px; align-items: flex-start; }
  .hero-content { margin: 0; padding: 60px 7% 170px; }
  .hero-verse { left: 7%; right: 7%; max-width: none; bottom: 24px; }
  .hero-dots { left: auto; right: 7%; top: 22px; bottom: auto; }
  .section { padding: 65px 6%; }
  .card-grid { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .leader { padding: 22px 8px 20px; }
  .leader-phone { font-size: 12px; }
  .leader img { width: 110px; height: 110px; }
  .leader h3 { font-size: 15px; }
  .gallery-grid img { height: 170px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .intro .lead { font-size: 15px; }
}
