/* ─────────────────────────────────────────────
   BHARATSHREE CO-OP HOUSING SOCIETY
   ./assets/css/style.css  –  Bootstrap 5 + Custom
───────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --red:       #C0392B;
  --red-dark:  #922b21;
  --red-light: #fdf0ef;
  --navy:      #1A3A6B;
  --navy-dark: #122748;
  --navy-light:#eaf0fb;
  --gold:      #D4A017;
  --off-white: #FAF8F5;
  --light-bg:  #F5F3EF;
  --text:      #2c2c2c;
  --muted:     #6c6c6c;
  --border:    #e0ddd8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --radius:    10px;
  --radius-lg: 16px;
  --transition: .25s ease;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

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

/* ── TOP BAR ── */
.topbar {
  background: var(--navy-dark);
  color: #b8c8e0;
  font-size: .8rem;
  padding: .5rem 0;
  border-bottom: 2px solid var(--red);
}
.topbar small { font-size: .8rem; }
#google_translate_element .goog-te-gadget-simple {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .75rem !important;
}
#google_translate_element .goog-te-gadget-simple span,
#google_translate_element .goog-te-gadget-simple a {
  color: #b8c8e0 !important;
  font-size: .75rem !important;
}

/* ── NAVBAR ── */
#mainNav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  padding: .6rem 0;
}
#mainNav.scrolled { box-shadow: var(--shadow-md); }

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.brand-sub {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .03em;
  line-height: 1;
}

#mainNav .nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  padding: .45rem .8rem !important;
  border-radius: 6px;
  letter-spacing: .01em;
  transition: all var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--red);
  background: var(--red-light);
}

.navbar-toggler {
  border-color: var(--border);
}
.navbar-toggler:focus { box-shadow: none; }

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A3A6B 0%, #2c5282 40%, #8B1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.18);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: .1em;
}
/* Subtle geometric pattern overlay */
.hero-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.025) 40px,
      rgba(255,255,255,.025) 41px
    );
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,25,50,.3) 0%,
    rgba(10,25,50,.6) 60%,
    rgba(10,25,50,.8) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
}
.hero-eyebrow {
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: .5rem;
  animation: fadeUp .8s ease both;
}
.hero-motto {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: .75rem;
  animation: fadeUp .8s .15s ease both;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 auto 1rem;
  animation: fadeUp .8s .25s ease both;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  animation: bounce 1.8s infinite;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
}
.stat-item {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-lbl {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-top: .25rem;
  letter-spacing: .04em;
}

/* ── SECTIONS ── */
.section-pad { padding: 5rem 0; }
.bg-light-custom { background: var(--light-bg); }

.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-body {
  color: #444;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .9rem;
  font-style: italic;
  min-height: 260px;
  text-align: center;
}
.tall-placeholder { min-height: 380px; }

/* ── BUTTONS ── */
.btn-primary-custom {
  background: var(--red);
  color: #fff;
  border: none;
  padding: .65rem 1.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .92rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-primary-custom:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192,57,43,.35);
}
.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  padding: .65rem 1.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .92rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: .55rem 1.4rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .88rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
}

.text-red { color: var(--red); }

/* ── QUICK CARDS ── */
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: all var(--transition);
  height: 100%;
  color: var(--text);
  text-decoration: none;
}
.quick-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.qc-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.qc-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: .35rem;
}
.qc-sub {
  font-size: .88rem;
  color: var(--muted);
}

/* ── NOTICE CARDS (Home) ── */
.notice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  border-top: 3px solid var(--navy);
  transition: box-shadow var(--transition);
}
.notice-card:hover { box-shadow: var(--shadow-md); }
.notice-date {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .4rem;
  letter-spacing: .05em;
}
.notice-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: .6rem;
  background: var(--navy-light);
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.notice-tag.maintenance { background: #fef3c7; color: #92400e; }
.notice-tag.general     { background: #ecfdf5; color: #065f46; }
.notice-tag.urgent      { background: #fef2f2; color: #991b1b; }

.notice-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; }
.notice-body  { font-size: .9rem; color: #555; margin-bottom: .75rem; }
.notice-link  { font-size: .85rem; color: var(--red); font-weight: 500; }
.notice-link:hover { color: var(--red-dark); }
.notice-link i { font-size: .7rem; }

/* ── BUILDINGS SECTION ── */
.buildings-preview-section {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.buildings-preview-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,.02) 60px,
      rgba(255,255,255,.02) 61px
    );
}
.building-card {
  text-align: center;
}
.bldg-placeholder {
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--radius);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  transition: all var(--transition);
  cursor: default;
}
.bldg-placeholder:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
}
.bldg-placeholder span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
}
.bldg-label {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .1rem;
}
.bldg-sub {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
}

/* ── MAP PLACEHOLDER ── */
.map-placeholder {
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
}
.map-placeholder-inner {
  text-align: center;
  padding: 2rem;
}

/* ── ADDRESS BLOCK ── */
.address-block {
  font-style: normal;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  opacity: .7;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: .4rem;
}
.page-hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin: 0;
}
.breadcrumb-custom { margin-bottom: .75rem; }
.breadcrumb-custom .breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .85rem; }
.breadcrumb-custom .breadcrumb-item.active { color: rgba(255,255,255,.8); font-size: .85rem; }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* ── ABOUT PAGE ── */
.info-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  transition: box-shadow var(--transition);
}
.info-detail-card:hover { box-shadow: var(--shadow-sm); }
.idc-icon {
  width: 44px;
  height: 44px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--red);
  flex-shrink: 0;
}
.idc-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .2rem; }
.idc-value { font-size: 1rem; font-weight: 600; color: var(--navy); }

.committee-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.committee-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cc-avatar {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}
.cc-name { font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: .2rem; }
.cc-role { font-size: .85rem; color: var(--red); font-weight: 500; }

/* ── NOTICE BOARD PAGE ── */
.notice-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nf-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.nf-btn:hover, .nf-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.notice-full-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.5rem;
  transition: box-shadow var(--transition);
}
.notice-full-card:hover { box-shadow: var(--shadow-md); }
.urgent-notice { border-left: 4px solid var(--red); }
.nfc-left { flex-shrink: 0; }
.nfc-date-block {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  width: 58px;
  text-align: center;
  padding: .6rem .4rem;
}
.nfc-month { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.nfc-year  { display: block; font-size: .85rem; font-weight: 600; }
.nfc-body  { flex: 1; }
.nfc-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin: .4rem 0 .6rem; }
.nfc-text  { font-size: .9rem; color: #555; margin-bottom: .5rem; }
.nfc-meta  { font-size: .8rem; color: var(--muted); }
.nfc-new-badge {
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}
.agm-tag         { background: var(--navy-light); color: var(--navy); }
.maintenance-tag { background: #fef3c7; color: #92400e; }
.general-tag     { background: #ecfdf5; color: #065f46; }
.urgent-tag      { background: #fef2f2; color: #991b1b; }

/* ── CONTACT PAGE ── */
.contact-info-block { margin-top: 1.5rem; }
.cib-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}
.cib-icon {
  width: 38px;
  height: 38px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.cib-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.cib-value { font-size: .95rem; color: var(--text); }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.form-control-custom {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .6rem .9rem;
  font-size: .93rem;
  font-family: var(--font-sans);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-control-custom:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,107,.1);
  outline: none;
}
.form-label { font-size: .88rem; font-weight: 500; color: var(--text); margin-bottom: .35rem; }
.alert-custom {
  background: var(--navy-light);
  border: 1px solid #c6d8f5;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .88rem;
  color: var(--navy);
}

/* ── FOOTER ── */
.site-footer {
  background: #141e2e;
  padding: 4rem 0 1.5rem;
  color: #aaa;
}
.footer-motto {
  font-family: var(--font-serif);
  color: var(--gold);
  font-style: italic;
  margin-top: .5rem;
  font-size: 1rem;
}
.footer-heading {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .88rem;
  color: #999;
}
.footer-links a { color: #999; }
.footer-links a:hover { color: var(--gold); }
.footer-divider {
  border-color: rgba(255,255,255,.08);
  margin: 2.5rem 0 1.5rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar .d-flex { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .topbar small:last-of-type { display: none; }
  .hero-section { min-height: 75vh; }
  .section-pad  { padding: 3rem 0; }
  .stats-strip  { padding: 2rem 0; }
  .stat-item    { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
  .notice-full-card { flex-direction: column; gap: .75rem; }
  .nfc-date-block { width: auto; display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .8rem; }
}

/* ── GOOGLE TRANSLATE WIDGET CLEANUP ── */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }
