/*
Theme Name: Aloha International Ministries
Theme URI: https://example.com/
Author: OpenAI
Description: A custom WordPress theme for Aloha International Ministries Kauai.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: aloha-ministries
*/

:root {
  --teal: #0d6f7c;
  --deep-teal: #0a4f58;
  --gold: #c9962a;
  --light: #f7fbfc;
  --sand: #f6efe3;
  --text: #1f2a30;
  --muted: #5f6f77;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.15;
}

.brand-script,
.site-title {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-weight: 400;
  letter-spacing: .5px;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .92; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--deep-teal);
  color: var(--white);
  font-size: 14px;
  padding: 10px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-mark {
  width: 360px;
  max-width: min(48vw, 360px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.logo-mark,
.logo-mark:hover {
  opacity: 1;
}

.logo-mark img,
.logo-mark .custom-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-mark .custom-logo-link {
  display: block;
  width: 100%;
}

.logo-text small {
  display: block;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  margin-top: 2px;
}

.logo-text strong,
.logo-text .site-title {
  display: block;
  font-size: 24px;
  color: var(--teal);
}

.logo-text {
  display: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--deep-teal);
  padding: 0;
  margin: 0;
}

.button,
.wp-block-button__link,
.button-outline,
input[type="submit"],
button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .2s ease;
  border: none;
  cursor: pointer;
}

.button,
.wp-block-button__link,
input[type="submit"],
button {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.button:hover,
.button-outline:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8,53,60,.55), rgba(8,53,60,.55)),
    radial-gradient(circle at top left, rgba(201,150,42,.28), transparent 30%),
    linear-gradient(120deg, #0a5e6a 0%, #0f7d8c 45%, #e1b457 100%);
  color: var(--white);
  padding: 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 38px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  margin-bottom: 12px;
}

.hero h2 {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 400;
  color: #fff7e4;
  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;
  font-size: 18px;
  color: rgba(255,255,255,.92);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.section {
  padding: 80px 0;
}

.section.alt { background: var(--sand); }

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading .kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--deep-teal);
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 10px;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(13,111,124,.1);
  color: var(--teal);
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3 { color: var(--deep-teal); font-size: 22px; }
.card p { color: var(--muted); margin: 0; }

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}

.feature-panel {
  background: linear-gradient(145deg, var(--deep-teal), var(--teal));
  color: var(--white);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.feature-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pill {
  background: rgba(13,111,124,.09);
  color: var(--deep-teal);
  border: 1px solid rgba(13,111,124,.15);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.map-band {
  background: linear-gradient(120deg, var(--teal), var(--gold));
  color: var(--white);
  border-radius: 26px;
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  box-shadow: var(--shadow);
}

.map-band .country {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 22px;
}

.quote {
  background: var(--white);
  border-left: 5px solid var(--gold);
  padding: 24px 24px 24px 28px;
  border-radius: 0 18px 18px 0;
  box-shadow: var(--shadow);
  color: var(--deep-teal);
  font-size: 20px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}

.placeholder-photo {
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13,111,124,.9), rgba(201,150,42,.75));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.placeholder-photo::after {
  content: "Replace with ministry photo";
  position: absolute;
  inset: auto 20px 20px 20px;
  background: rgba(255,255,255,.9);
  color: var(--deep-teal);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.cta {
  background: linear-gradient(120deg, #083e46 0%, #0d6f7c 55%, #c9962a 100%);
  color: var(--white);
  border-radius: 30px;
  padding: 42px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: center;
}

.content-area {
  padding: 60px 0;
}

.entry-content,
.entry-summary {
  color: var(--text);
}

.entry-content p,
.entry-summary p,
.site-footer p,
.site-footer li {
  color: rgba(255,255,255,.88);
}

.site-footer {
  background: #09272c;
  color: rgba(255,255,255,.88);
  padding: 50px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-note {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,.68);
}

.footer-menu,
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li + li { margin-top: 8px; }

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-layout,
  .cta,
  .footer-grid,
  .gallery-strip,
  .map-band,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .main-navigation ul {
    display: none;
  }

  .logo-mark {
    width: min(72vw, 300px);
  }

  .hero {
    padding: 72px 0;
  }
}
