/* ============================================================
   IPC Borivali — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600&family=Noto+Sans+Malayalam:wght@400;500;600&display=swap');

:root{
  /* colour tokens */
  --bg:            #F6F4EF;
  --bg-alt:        #EEEAE0;
  --ink:           #1C2541;
  --ink-soft:      #4A527A;
  --ink-70:        rgba(28,37,65,0.7);
  --gold:          #A9822C;
  --gold-dark:     #8C6B22;
  --maroon:        #7B2D26;
  --border:        #DDD7C8;
  --white:         #FFFFFF;

  /* type */
  --font-display:  'Fraunces', serif;
  --font-body:     'Work Sans', sans-serif;
  --font-mal:      'Noto Sans Malayalam', sans-serif;

  --content-width: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html{ overflow-x: hidden; }

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

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em 0; }

.mal{ font-family: var(--font-mal); }

.wrap{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 480px){
  .wrap{ padding: 0 20px; }
}

.kicker{
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.9em;
}

.kicker::before{
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold-dark);
  margin-right: 10px;
  vertical-align: middle;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary{
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover{ background: var(--gold-dark); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--white); }

.btn-ghost-light{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost-light:hover{ background: var(--white); color: var(--ink); }

.link-underline{
  position: relative;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}
.link-underline:hover{ border-color: var(--gold-dark); color: var(--gold-dark); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 12px;
}

@media (max-width: 400px){
  .site-header .wrap{ height: 68px; }
  .brand img.logo-mark{ width: 36px; height: 36px; }
  .brand-text .name{ font-size: 1rem; }
  .brand-text .place{ font-size: 0.66rem; }
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand svg{ width: 34px; height: 34px; flex-shrink: 0; }
.brand img.logo-mark{
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.brand-text .place{
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a{
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover{ color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after{ transform: scaleX(1); }
.main-nav a.active{ color: var(--white); }

.nav-cta{
  border: 1px solid rgba(255,255,255,0.4);
}
.main-nav a.nav-cta{
  color: var(--white);
  padding: 9px 18px;
  font-size: 0.88rem;
}
.nav-cta:hover{ background: var(--gold); border-color: var(--gold); }
.nav-cta::after{ display:none; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg{ width: 26px; height: 26px; }

@media (max-width: 880px){
  .main-nav{
    position: fixed;
    top: 82px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open{ max-height: 420px; }
  .main-nav a{ width: 100%; padding: 16px 32px; }
  .main-nav a::after{ display: none; }
  .nav-cta{ margin: 12px 32px; justify-content: center; }
  .main-nav a.nav-cta{ width: calc(100% - 64px); padding: 16px 32px; }
  .nav-toggle{ display: block; }
}

@media (max-width: 400px){
  .main-nav{ top: 68px; }
}
.hero{
  background: var(--bg);
  overflow: hidden;
}

.hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 88px;
  min-height: 620px;
}

@media (max-width: 880px){
  .hero .wrap{
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
    min-height: 0;
  }
}

.hero-copy h1{
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  color: var(--ink);
  max-width: 12ch;
}

.hero-copy .welcome-mal{
  font-family: var(--font-mal);
  font-size: 1.1rem;
  color: var(--maroon);
  margin-bottom: 6px;
  display: block;
}

.hero-copy p.lede{
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2em;
}

.hero-actions{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual{
  position: relative;
}

.motif-panel{
  background: var(--ink);
  border-radius: 2px;
  aspect-ratio: 4 / 4.6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.motif-panel svg{ width: 62%; height: 62%; }

.photo-slot{
  background: linear-gradient(155deg, var(--ink) 0%, #2c3763 60%, var(--maroon) 130%);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.photo-slot .tag{
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.35), transparent);
  width: 100%;
}

.photo-slot .tag svg{ width: 18px; height: 18px; opacity: 0.85; flex-shrink: 0; }

.photo-slot::before{
  content:"";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0, transparent 45%);
}

/* ---------- aspect ratio utilities (so mobile can override them) ---------- */
.ratio-hero{ aspect-ratio: 4/4.6; }
.ratio-portrait{ aspect-ratio: 4/4.4; }
.ratio-landscape{ aspect-ratio: 4/3.6; }

@media (max-width: 640px){
  .ratio-hero{ aspect-ratio: 4/3.4; }
  .ratio-portrait{ aspect-ratio: 4/3.6; }
  .ratio-landscape{ aspect-ratio: 4/3; }
}

/* real photo frame (for actual uploaded images, no placeholder tag) */
.photo-frame{
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}
.photo-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section{ padding: 100px 0; }
section.tight{ padding: 76px 0; }
.section-alt{ background: var(--bg-alt); }

@media (max-width: 880px){
  section{ padding: 64px 0; }
  section.tight{ padding: 48px 0; }
}

.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2{
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--ink);
}

.section-head p{ color: var(--ink-soft); font-size: 1.02rem; }

.rule{
  width: 60px;
  height: 2px;
  background: var(--maroon);
  border: none;
  margin: 0 0 28px 0;
}
.rule.center{ margin-left: auto; margin-right: auto; }

/* ---------- schedule table ---------- */
.schedule{
  border-top: 1px solid var(--border);
}
.schedule-row{
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.schedule-row .day{
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--maroon);
}
.schedule-row .what strong{
  display:block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.schedule-row .what span{ color: var(--ink-soft); font-size: 0.92rem; }
.schedule-row .time{
  text-align: right;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

@media (max-width: 640px){
  .schedule-row{ grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .schedule-row .time{ text-align: left; font-weight: 500; }
}

/* ---------- two column ---------- */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 880px){
  .two-col{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- ministry list grid ---------- */
.list-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.list-grid-item{
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 32px;
}
.list-grid-item svg{ width: 30px; height: 30px; color: var(--gold-dark); margin-bottom: 18px; }
.list-grid-item h3{ font-size: 1.1rem; margin-bottom: 8px; }
.list-grid-item p{ color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 0; }

@media (max-width: 880px){
  .list-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .list-grid{ grid-template-columns: 1fr; }
}

/* ---------- page banner (inner pages) ---------- */
.page-banner{
  background: var(--ink);
  color: var(--white);
  padding: 74px 0 60px 0;
}
@media (max-width: 640px){
  .page-banner{ padding: 48px 0 40px 0; }
}
.page-banner h1{ color: var(--white); font-size: clamp(2rem, 3.4vw, 2.7rem); }
.page-banner p{ color: rgba(255,255,255,0.72); max-width: 56ch; }
.page-banner .kicker{ color: var(--gold); }
.page-banner .kicker::before{ background: var(--gold); }

/* ---------- beliefs / cards without shadow ---------- */
.plain-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 880px){ .plain-grid{ grid-template-columns: 1fr; gap: 40px; } }

.plain-grid .num{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--border);
  font-size: 2.4rem;
  display: block;
  margin-bottom: 8px;
}

.plain-grid h3{ font-size: 1.15rem; margin-bottom: 10px; }
.plain-grid p{ color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- person card ---------- */
.person{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 640px){ .person{ grid-template-columns: 1fr; } }

.person .photo-slot{ aspect-ratio: 1/1.1; }

.people-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 880px){ .people-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .people-grid{ grid-template-columns: 1fr; } }

.people-grid .photo-slot{ aspect-ratio: 1/1.05; margin-bottom: 18px; }
.people-grid h4{ font-size: 1.02rem; margin-bottom: 2px; }
.people-grid .role{ color: var(--gold-dark); font-size: 0.85rem; }

/* ---------- media / video embeds ---------- */
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  border-radius: 2px;
  overflow: hidden;
}
.video-frame iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid .photo-slot{ aspect-ratio: 1/1; }
@media (max-width: 880px){ .gallery-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .gallery-grid{ grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; gap: 48px; } }

.contact-list{ list-style: none; padding: 0; margin: 0 0 36px 0; }
.contact-list li{
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-list li:first-child{ border-top: 1px solid var(--border); }
.contact-list svg{ width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.contact-list strong{ display: block; font-weight: 500; margin-bottom: 2px; }
.contact-list span{ color: var(--ink-soft); font-size: 0.93rem; }

.contact-quick{ display: flex; gap: 14px; flex-wrap: wrap; }

.map-slot{
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 2px;
  aspect-ratio: 4/3.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-soft);
  text-align: center;
  padding: 32px;
}
.map-slot svg{ width: 34px; height: 34px; color: var(--gold-dark); }
.map-slot small{ font-size: 0.8rem; max-width: 32ch; }

/* ---------- form ---------- */
.form-field{ margin-bottom: 22px; }
.form-field label{
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea{
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 2px;
}
.form-field input:focus, .form-field textarea:focus{
  outline: none;
  border-color: var(--gold-dark);
}
.form-field textarea{ resize: vertical; min-height: 120px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: rgba(255,255,255,0.72); max-width: 52ch; margin-left:auto; margin-right:auto; }
.cta-band .kicker{ color: var(--gold); }
.cta-band .kicker::before{ background: var(--gold); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 880px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-grid h4{
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.footer-grid ul{ list-style: none; padding: 0; margin: 0; }
.footer-grid li{ margin-bottom: 12px; font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--white); }

.footer-brand .brand{ margin-bottom: 16px; }
.footer-brand p{ font-size: 0.9rem; max-width: 34ch; color: rgba(255,255,255,0.6); }

.social-row{ display: flex; gap: 14px; margin-top: 18px; }
.social-row a{
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover{ border-color: var(--gold); background: var(--gold); }
.social-row svg{ width: 16px; height: 16px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
