/*
Theme Name: IRWA Chapter 32
Author: IRWA Chapter 32
Description: Protected chapter design with editable events, announcements, photos, officers and text.
Version: 1.0.0
Requires PHP: 7.4
*/

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

    :root {
      --navy:    #0d1f3c;
      --gold:    #c9a84c;
      --gold-lt: #e8c96e;
      --cream:   #f5f0e8;
      --white:   #ffffff;
      --gray:    #6b7280;
      --light:   #f9f7f3;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Source Sans 3', sans-serif;
      background: var(--white);
      color: var(--navy);
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: var(--navy);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2rem;
      height: 64px;
      box-shadow: 0 2px 12px rgba(0,0,0,.3);
    }
    .nav-brand {
      display: flex; align-items: center; gap: .75rem;
    }
    .nav-logo {
      width: 40px; height: 40px;
      background: var(--gold);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Playfair Display', serif;
      font-size: .9rem; font-weight: 800;
      color: var(--navy);
    }
    .nav-title {
      font-family: 'Playfair Display', serif;
      color: var(--white);
      font-size: 1.05rem;
      line-height: 1.2;
    }
    .nav-title span { display: block; font-size: .7rem; font-family: 'Source Sans 3', sans-serif; font-weight: 300; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a { color: #cbd5e1; text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
    .nav-links a:hover { color: var(--gold); }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      background: linear-gradient(160deg, #0d1f3c 0%, #14294f 55%, #0d1f3c 100%);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center;
      padding: 6rem 1.5rem 4rem;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(201,168,76,.04) 60px, rgba(201,168,76,.04) 61px);
    }
    .hero-badge {
      position: relative; z-index: 1;
      display: inline-block;
      border: 1px solid var(--gold);
      color: var(--gold);
      font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
      padding: .4rem 1.2rem;
      border-radius: 2px;
      margin-bottom: 1.5rem;
      animation: fadeUp .6s ease both;
    }
    .hero h1 {
      position: relative; z-index: 1;
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 6vw, 4.5rem);
      color: var(--white);
      line-height: 1.1;
      max-width: 780px;
      animation: fadeUp .6s .1s ease both;
    }
    .hero h1 em { color: var(--gold); font-style: normal; }
    .hero p {
      position: relative; z-index: 1;
      margin-top: 1.25rem;
      color: #cbd5e1;
      font-size: 1.1rem;
      max-width: 560px;
      line-height: 1.7;
      animation: fadeUp .6s .2s ease both;
    }
    .hero-cta {
      position: relative; z-index: 1;
      margin-top: 2.5rem;
      display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
      animation: fadeUp .6s .3s ease both;
    }
    .btn-primary {
      background: var(--gold);
      color: var(--navy);
      padding: .75rem 2rem;
      font-weight: 700; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
      border: none; border-radius: 3px; cursor: pointer; text-decoration: none;
      transition: background .2s, transform .15s;
    }
    .btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }
    .btn-outline {
      background: transparent;
      color: var(--white);
      padding: .75rem 2rem;
      font-weight: 600; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
      border: 1px solid rgba(255,255,255,.4); border-radius: 3px; cursor: pointer; text-decoration: none;
      transition: border-color .2s, color .2s, transform .15s;
    }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
    .hero-skyline {
      position: absolute; bottom: 0; left: 0; right: 0;
      width: 100%; height: 42%;
      z-index: 0;
      opacity: .55;
    }
    .hero-skyline .bldg { fill: #16294d; }
    .hero-skyline .bldg-lt { fill: #1c3763; }
    .hero-skyline .win { fill: var(--gold); opacity: .35; }
    .hero-scroll {
      position: absolute; bottom: 2rem;
      display: flex; flex-direction: column; align-items: center; gap: .4rem;
      color: rgba(255,255,255,.4); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    }
    .hero-scroll::after {
      content: '';
      width: 1px; height: 40px;
      background: linear-gradient(to bottom, rgba(201,168,76,.6), transparent);
      animation: pulse 2s ease infinite;
    }

    /* ── DIVIDER ── */
    .gold-rule {
      height: 4px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    /* ── SECTIONS ── */
    section { padding: 5rem 1.5rem; }
    .container { max-width: 1080px; margin: 0 auto; }
    .section-label {
      font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
      color: var(--gold); margin-bottom: .6rem;
    }
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      color: var(--navy);
      line-height: 1.2;
      margin-bottom: 1rem;
    }
    .section-sub {
      color: var(--gray);
      font-size: 1rem;
      line-height: 1.7;
      max-width: 560px;
    }

    /* ── ABOUT ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
      margin-top: 3rem;
    }
    .about-text p { color: #374151; line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
    .about-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    .stat-card {
      background: var(--navy);
      color: var(--white);
      padding: 1.75rem 1.5rem;
      border-radius: 4px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .stat-card::before {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0;
      height: 3px;
      background: var(--gold);
    }
    .stat-card .num {
      font-family: 'Playfair Display', serif;
      font-size: 2.5rem;
      color: var(--gold);
    }
    .stat-card .lbl {
      font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
      color: #94a3b8;
      margin-top: .25rem;
    }

    /* ── EVENTS ── */
    #events { background: var(--light); }
    .events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-top: 2.5rem;
    }
    .event-card {
      background: var(--white);
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      overflow: hidden;
      transition: transform .2s, box-shadow .2s;
    }
    .event-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,31,60,.1); }
    .event-card-top {
      background: var(--navy);
      padding: 1.25rem 1.5rem;
      display: flex; align-items: center; gap: 1rem;
    }
    .event-date-box {
      background: var(--gold);
      color: var(--navy);
      border-radius: 4px;
      width: 52px; min-width: 52px;
      text-align: center;
      padding: .4rem 0;
    }
    .event-date-box .month { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    .event-date-box .day { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1; }
    .event-title-wrap .title { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1rem; }
    .event-title-wrap .type { font-size: .72rem; color: #94a3b8; letter-spacing: .06em; margin-top: .15rem; }
    .event-body { padding: 1.25rem 1.5rem; }
    .event-body p { font-size: .9rem; color: var(--gray); line-height: 1.6; margin-bottom: .75rem; }
    .event-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
    .event-meta span { font-size: .8rem; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: .3rem; }
    .event-meta span::before { content: attr(data-icon); }
    .placeholder-note {
      background: #fef9ec;
      border: 1px dashed var(--gold);
      border-radius: 6px;
      padding: 1.25rem 1.5rem;
      color: #92400e;
      font-size: .875rem;
      margin-top: 1.5rem;
      line-height: 1.6;
    }

    /* ── PHOTOS ── */
    #photos { background: var(--light); }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1.25rem;
      margin-top: 2.5rem;
    }
    .gallery-slot {
      aspect-ratio: 4 / 3;
      border: 1px dashed #c9b98a;
      border-radius: 6px;
      background: repeating-linear-gradient(135deg, var(--cream), var(--cream) 10px, #efe7d6 10px, #efe7d6 20px);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: .5rem;
      color: #a08a4f;
      text-align: center;
      padding: 1rem;
    }
    .gallery-slot .icon { font-size: 1.8rem; opacity: .7; }
    .gallery-slot .label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

    /* ── MEMBERSHIP ── */
    .membership-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 1.5rem;
      margin-top: 2.5rem;
    }
    .member-benefit {
      padding: 1.75rem 1.5rem;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      transition: border-color .2s;
    }
    .member-benefit:hover { border-color: var(--gold); }
    .benefit-icon {
      width: 44px; height: 44px;
      background: var(--cream);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      margin-bottom: 1rem;
    }
    .member-benefit h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      color: var(--navy);
      margin-bottom: .5rem;
    }
    .member-benefit p { font-size: .875rem; color: var(--gray); line-height: 1.6; }

    /* ── BOARD ── */
    #board { background: var(--navy); }
    #board .section-title { color: var(--white); }
    #board .section-sub { color: #94a3b8; }
    .board-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1.25rem;
      margin-top: 2.5rem;
    }
    .board-card {
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(201,168,76,.25);
      border-radius: 6px;
      padding: 1.5rem 1.25rem;
      text-align: center;
    }
    .board-avatar {
      width: 56px; height: 56px;
      background: var(--gold);
      border-radius: 50%;
      margin: 0 auto .75rem;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      color: var(--navy);
    }
    .board-card .name { color: var(--white); font-weight: 600; font-size: .95rem; }
    .board-card .role { color: var(--gold); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; margin-top: .2rem; }
    .board-placeholder { color: #475569; font-size: .8rem; margin-top: .35rem; font-style: italic; }

    /* ── CONTACT ── */
    #contact { background: var(--cream); }
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      margin-top: 3rem;
      align-items: start;
    }
    .contact-info p { color: #374151; line-height: 1.8; margin-bottom: 1.5rem; font-size: 1rem; }
    .contact-detail {
      display: flex; align-items: flex-start; gap: .75rem;
      margin-bottom: 1.25rem;
    }
    .contact-icon {
      width: 36px; height: 36px; min-width: 36px;
      background: var(--navy);
      border-radius: 4px;
      display: flex; align-items: center; justify-content: center;
      font-size: .9rem;
    }
    .contact-detail .text .label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
    .contact-detail .text .val { font-size: .95rem; color: var(--navy); margin-top: .1rem; }
    .contact-detail .text a { color: var(--navy); text-decoration: none; }
    .contact-detail .text a:hover { color: var(--gold); }

    .contact-form { background: var(--white); padding: 2rem; border-radius: 6px; box-shadow: 0 4px 20px rgba(13,31,60,.08); }
    .contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.5rem; }
    .form-group { margin-bottom: 1.1rem; }
    .form-group label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin-bottom: .35rem; }
    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      padding: .65rem .9rem;
      border: 1px solid #d1d5db;
      border-radius: 4px;
      font-family: 'Source Sans 3', sans-serif;
      font-size: .95rem;
      color: var(--navy);
      background: var(--white);
      transition: border-color .2s;
    }
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus { outline: none; border-color: var(--gold); }
    .form-group textarea { resize: vertical; min-height: 120px; }
    .form-submit { width: 100%; background: var(--navy); color: var(--white); border: none; padding: .85rem; font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: background .2s; margin-top: .5rem; }
    .form-submit:hover { background: #162e52; }
    .form-note { font-size: .75rem; color: var(--gray); margin-top: .75rem; text-align: center; }

    /* ── FOOTER ── */
    footer {
      background: #080f1e;
      color: #64748b;
      padding: 2.5rem 1.5rem;
      text-align: center;
      font-size: .85rem;
    }
    footer .footer-logo {
      font-family: 'Playfair Display', serif;
      color: var(--gold);
      font-size: 1.1rem;
      margin-bottom: .5rem;
    }
    footer a { color: #94a3b8; text-decoration: none; }
    footer a:hover { color: var(--gold); }
    footer .footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: .75rem 0; flex-wrap: wrap; }

    /* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulse {
      0%, 100% { opacity: .4; }
      50% { opacity: 1; }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .about-stats { grid-template-columns: 1fr 1fr; }
    }
  

.admin-edit-note{display:none}.announcements-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;margin-top:2rem}.announcement-card{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:1.5rem}.announcement-card h3{font-family:"Playfair Display",serif;margin-bottom:.6rem}.announcement-card p{line-height:1.7;color:#4b5563}.gallery-photo{margin:0}.gallery-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.gallery-photo figcaption{font-size:.85rem;color:#6b7280;margin-top:.4rem}.mobile-menu-toggle{display:none;background:transparent;color:#fff;border:1px solid #c9a84c;border-radius:4px;padding:.45rem .7rem;cursor:pointer}.screen-reader-text{position:absolute;left:-9999px}@media(max-width:768px){.mobile-menu-toggle{display:block}.nav-links.is-open{display:flex;position:absolute;top:64px;left:0;right:0;background:#0d1f3c;flex-direction:column;padding:1.5rem 2rem;gap:1rem}.nav-links{display:none}}
