/*
Theme Name: SindDios
Theme URI: https://sindhudurgdioscese.org
Author: Chris
Description: Custom theme for Sindhudurg Dioscese website
Version: 1.0
Text Domain: sinddio-theme
*/

:root {
  --paper-base: #f8f1e4;
  --paper-accent: #ede1c9;
  --paper-line: #e2d4bb;
  --navy: #183a6c;
  --blue: #1d4f91;
  --gold: #c88b2c;
  --text-soft: #5b4b3a;
  --wood-1: #74461d;
  --wood-2: #8f5a28;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(180deg, #faf3e8 0%, #f2e6d3 100%);
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

button,
a,
input,
select,
textarea,
article,
nav,
aside,
section,
div,
img {
  border-radius: 0 !important;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 34, 64, 0.72) 0%, rgba(52, 31, 10, 0.25) 45%, rgba(69, 33, 7, 0.48) 100%),
    radial-gradient(circle at 75% 30%, rgba(255, 194, 101, 0.48), transparent 24%);
}


p {
	margin-bottom: 20px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link {
  padding: 1rem 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.mobile-nav-highlight {
  background: rgba(29, 79, 145, 0.95);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 16, 33, 0.5);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  height: 100vh;
  width: min(86vw, 380px);
  background:
    linear-gradient(180deg, rgba(20, 53, 96, 0.98), rgba(9, 26, 49, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%);
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
  transform: translateX(-100%);
  transition: transform 240ms ease;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 4px;
}

.menu-open .menu-icon {
  background: transparent;
}

.menu-open .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-icon::after {
  transform: translateY(-4px) rotate(-45deg);
}

.paper-strip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(242, 233, 214, 0.85)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.65), transparent 32%);
}

.texture-surface {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 22%),
    linear-gradient(180deg, rgba(245, 237, 222, 0.92), rgba(246, 239, 227, 0.96)),
    repeating-linear-gradient(
      0deg,
      rgba(140, 113, 69, 0.035),
      rgba(140, 113, 69, 0.035) 2px,
      transparent 2px,
      transparent 4px
    );
}

.quick-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.35rem 1.2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255, 252, 246, 0.75);
  transition: background 160ms ease, transform 160ms ease;
}

.quick-link-card:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.quick-link-icon {
  display: inline-flex;
  min-width: 2.3rem;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wood-strip {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, var(--wood-2), var(--wood-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.filter-field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 247, 238, 0.95);
  color: #5d4122;
  padding: 0.95rem 1rem;
  outline: none;
}

.filter-field:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  text-align: center;
}

.section-line {
  height: 1px;
  flex: 1;
  max-width: 18rem;
  background: linear-gradient(90deg, transparent, rgba(24, 58, 108, 0.4), transparent);
}

.formation-card {
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(56, 45, 18, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(56, 45, 18, 0.14);
}

.formation-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.formation-content {
  padding: 1.15rem 1rem 1.35rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.ministry-card {
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.82);
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(56, 45, 18, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(56, 45, 18, 0.14);
}

.ministry-card h3 {
  margin-top: 0.8rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.ministry-icon {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.footer-title {
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-list {
  display: grid;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-list a {
  transition: color 160ms ease;
}

.footer-list a:hover {
  color: #ffffff;
}

.go-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 52, 96, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(10, 34, 63, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.go-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top span {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.inner-hero {
  min-height: 280px;
}

.content-panel {
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(43, 35, 18, 0.08);
}

@media (min-width: 768px) {
    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        display: block;
    }
}

@media (max-width: 1024px) {
  .section-heading {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .quick-link-card {
    justify-content: flex-start;
    padding-left: 1.4rem;
  }

  .formation-image {
    height: 200px;
  }

  .section-line {
    max-width: 5rem;
  }

  .go-to-top {
    right: 1rem;
    bottom: 1rem;
  }

  .mobile-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}
