/* ====================================================
   WPSF - Wellway Protea Security Forum
   Stylesheet
   ==================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f4f4f4;
}

a {
  color: #f5b800;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

/* ---------- Colour Variables ---------- */
:root {
  --navy:       #1a2744;
  --navy-light: #243660;
  --gold:       #f5b800;
  --gold-dark:  #d4a000;
  --white:      #ffffff;
  --off-white:  #f9f9f7;
  --light-grey: #f0f0ec;
  --mid-grey:   #999;
  --text:       #333;
  --text-light: #555;
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--gold-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-full { width: 100%; }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2.5rem 0 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.4rem auto 0;
  border-radius: 2px;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ====================================================
   TAB NAVIGATION
   ==================================================== */
.tab-nav {
  background: var(--navy-light);
  display: flex;
  max-width: 100%;
  border-bottom: 3px solid var(--gold);
}

.tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.tab-btn.active {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

/* ====================================================
   TAB SECTIONS
   ==================================================== */
.tab-section {
  display: none;
  background: var(--off-white);
  min-height: 60vh;
}

.tab-section.active {
  display: block;
}

/* ====================================================
   WELCOME — HERO
   ==================================================== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 39, 68, 0.82) 0%,
    rgba(26, 39, 68, 0.45) 60%,
    rgba(26, 39, 68, 0.15) 100%
  );
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 520px;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}

/* ====================================================
   WELCOME — INTRO STRIP
   ==================================================== */
.intro-strip {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1.4rem 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.intro-strip strong {
  color: var(--gold);
}

/* ====================================================
   WELCOME — CARD GRID
   ==================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.card h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ====================================================
   WELCOME — PHOTO ROW
   ==================================================== */
.photo-row {
  display: flex;
  gap: 0;
  background: var(--navy);
}

.photo-item {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s;
  filter: brightness(0.75);
}

.photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.photo-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26,39,68,0.85));
  color: var(--white);
  text-align: center;
  padding: 0.8rem 0.5rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ====================================================
   WELCOME — CTA BANNER
   ==================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
}

.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ====================================================
   ABOUT — PAGE HERO
   ==================================================== */
.page-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--navy);
}

.page-hero--about {
  background-image: url('https://images.unsplash.com/photo-1584445584400-1d7b8b71f9a5?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center 40%;
}

.page-hero--contact {
  background-image: url('https://images.unsplash.com/photo-1560438718-eb61ede255eb?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center 50%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.68);
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

.page-hero-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.page-hero-content p {
  font-size: 1rem;
  opacity: 0.85;
}

/* ====================================================
   ABOUT — ABOUT BLOCKS
   ==================================================== */
.about-block {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-block--reverse {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.about-text blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.5rem 1rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  background: var(--light-grey);
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
}

.about-img-wrap {
  flex: 0 0 340px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.about-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ====================================================
   ABOUT — OBJECTIVES
   ==================================================== */
.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border-left: 5px solid var(--gold);
}

.obj-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
}

.objective-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.objective-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ====================================================
   ABOUT — HOW PATROLS WORK (INFO BOX)
   ==================================================== */
.info-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 2rem 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.info-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--gold);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  text-align: center;
}

.info-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.info-item h4 {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.info-item p {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* ====================================================
   ABOUT — MEMBERSHIP LIST
   ==================================================== */
.styled-list {
  margin: 0.75rem 0;
  padding-left: 0;
}

.styled-list li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ====================================================
   ABOUT — COMMITTEE GRID
   ==================================================== */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.committee-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}

.committee-card:hover {
  transform: translateY(-3px);
}

.committee-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.committee-card h4 {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.committee-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ====================================================
   CONTACT
   ==================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.contact-info h3,
.contact-form-wrap h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
}

.contact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.contact-card h4 {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card a,
.contact-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ====================================================
   CONTACT — FORM
   ==================================================== */
.contact-form-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-form-wrap h3 {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light-grey);
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,184,0,0.15);
  background: var(--white);
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 1.1rem;
  color: #2e7d32;
  font-weight: 600;
}

.form-success span {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #e8f5e9;
  border-radius: 50%;
  line-height: 40px;
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

/* ====================================================
   CONTACT — EMERGENCY NOTE
   ==================================================== */
.emergency-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff3cd;
  border: 1.5px solid #f5b800;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #6b4c00;
}

.emergency-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 55px;
  width: auto;
  opacity: 0.9;
}

.footer-text p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-text strong {
  color: var(--white);
  font-size: 1rem;
}

.footer-tagline {
  color: var(--gold) !important;
  font-style: italic;
  font-size: 0.85rem !important;
}

.footer-links {
  margin-left: auto;
  text-align: right;
}

.footer-links p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  background: rgba(0,0,0,0.25);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 800px) {
  .header-text h1 { font-size: 1.1rem; }
  .logo { height: 46px; }
  .hero { height: 360px; }
  .hero-content h2 { font-size: 2rem; }

  .about-block,
  .about-block--reverse {
    flex-direction: column;
  }
  .about-img-wrap { flex: unset; width: 100%; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    margin-left: 0;
    text-align: center;
  }

  .photo-row { flex-direction: column; }
  .photo-item img { height: 200px; }
}

@media (max-width: 520px) {
  .tab-btn {
    font-size: 0.78rem;
    padding: 0.85rem 0.5rem;
  }
  .hero { height: 300px; }
  .hero-content h2 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.9rem; }
  .section-container { padding: 1.5rem 1rem 2rem; }
  .page-hero { height: 200px; }
  .page-hero-content h2 { font-size: 1.6rem; }
}
