/*
Theme Name: AOH of the South Shore V5.8
Theme URI: https://aohsouthshore.org/
Author: Father John Murphy Division 9
Description: Faithful WordPress conversion of the Division's V5.8 static website. Includes a one-click content importer under Appearance > AOH V5.8 Import.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: aoh-south-shore
*/

:root{--forest:#123b30;--deep:#09291f;--gold:#caa56a;--cream:#f7f3eb;--ink:#20332e}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.7 'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
h1,h2,h3{font-family:'Libre Baskerville',Georgia,serif;line-height:1.2}h1{font-size:clamp(2.6rem,6vw,5.2rem)}h2{font-size:clamp(2rem,4vw,3.1rem)}h3{font-size:1.45rem}p{margin:.5rem 0 1.25rem}a{color:inherit}.wrap{max-width:1170px;margin:auto;padding:0 22px}
.topline{background:var(--deep);color:#dfd2b9;text-align:center;font-size:11px;letter-spacing:.18em;padding:8px}
header{background:white;position:sticky;top:0;z-index:50;box-shadow:0 4px 16px #0001}.navwrap{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:88px}
.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--forest);font-weight:800;line-height:1.25}.brand img{width:65px;height:65px;object-fit:contain}.brand small{display:block;font-size:10px;letter-spacing:.12em;color:#75827a;margin-top:5px}
nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}nav a{text-decoration:none;font-size:13px;font-weight:700}nav a:hover,nav a.active{color:#9a753e}.menu{display:none;border:0;background:var(--forest);color:white;padding:10px 14px;border-radius:4px}
.btn{display:inline-block;background:var(--gold);color:#14372c;padding:12px 23px;text-decoration:none;font-weight:800;border-radius:3px;border:0}.btn.outline{background:transparent;border:1px solid #ead8b4;color:white}.btn.dark{background:var(--forest);color:white}
.hero{min-height:570px;display:flex;align-items:center;color:white;background:linear-gradient(90deg,#09291ff2 0%,#09291fc9 55%,#09291f40 100%),url('assets/hero.jpg') center 42%/cover}.hero p{font-size:19px;max-width:650px}.eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:12px;font-weight:800;color:var(--gold)}.hero h1{max-width:800px;margin:13px 0 20px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
section{padding:70px 0}.intro{max-width:760px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:28px}.card{background:white;border:1px solid #e8e0d3;overflow:hidden;border-radius:5px}.card img{width:100%;height:220px;object-fit:cover}.card .inner{padding:24px}.card h3{margin:5px 0 12px}.card a.more{font-weight:800;color:#846233;text-decoration:none}.band{background:var(--forest);color:white}.band h2{color:white}.split{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.split img{width:100%;max-height:420px;object-fit:cover;border-radius:5px}.pagehero{background:var(--forest);color:white;padding:75px 0 65px}.pagehero h1{margin:10px 0 12px}.pagehero p{max-width:720px;color:#e3e7df;font-size:18px}.feature{background:white;padding:28px;border-left:4px solid var(--gold);border-radius:3px}.feature + .feature{margin-top:15px}.feature h3{margin-top:0}.listrow{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid #ddd4c4}.listrow strong{display:block}.muted{color:#65756d}.tag{display:inline-block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#99743d;font-weight:800}
.podcastcover{max-width:360px!important;aspect-ratio:1;object-fit:cover!important}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.photo-grid img{width:100%;height:230px;object-fit:cover}
footer{background:var(--deep);color:#e7e9e4;padding:55px 0 20px}footer a{color:#e6c58e}footer .columns{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}footer p{color:#b8c8bd}footer small{color:#aebeb3}.footerline{border-top:1px solid #ffffff25;margin-top:35px;padding-top:20px}
iframe{max-width:100%;border:0;border-radius:10px}
@media(max-width:900px){nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:20px;box-shadow:0 8px 15px #0002;flex-direction:column;align-items:flex-start}nav.open{display:flex}.menu{display:block}.cards{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.hero{min-height:510px}.photo-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.cards,.photo-grid,footer .columns{grid-template-columns:1fr}.hero{min-height:500px}.brand img{width:52px;height:52px}.brand{font-size:13px}.navwrap{min-height:72px}section{padding:48px 0}.listrow{align-items:flex-start;flex-direction:column}}

.motto-section .feature{background:#fff;color:#20332e}.motto-section .feature h3,.motto-section .feature p{color:#20332e}
#father-john-murphy figure img{height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center top!important}

/* v5.4: consistent three-card rows and non-distorted heritage emblem */
.cards{align-items:stretch;grid-auto-rows:1fr}
.cards>.feature,.cards>.card{margin-top:0!important;height:100%;min-width:0}
.cards>.feature{display:flex;flex-direction:column;justify-content:flex-start}
.cards>.feature h3{margin:0 0 12px}
.cards>.feature p{margin:0}
.split img[src*="shoes"]{width:100%;height:auto!important;max-height:430px!important;aspect-ratio:1/1;object-fit:contain!important;object-position:center!important;background:transparent}

/* Official logos: original artwork, transparent exterior, no stretching */
img[src*="shoes.png"]{width:100%;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;background:transparent!important}
.split img[src*="shoes.png"]{width:min(100%,460px);height:auto!important;max-height:none!important;aspect-ratio:1/1!important;object-fit:contain!important;justify-self:center}
.brand img[src*="crest.png"]{object-fit:contain!important;background:transparent!important}

/* WordPress compatibility */
body.admin-bar header{top:32px} .aoh-content{min-height:50vh} .aoh-content > .wp-block-html{margin:0} .aoh-calendar{width:100%;min-height:650px;background:#fff} .aoh-calendar iframe{display:block;width:100%;height:650px;border:0} .screen-reader-text{position:absolute;left:-9999px} .current-menu-item>a{color:#9a753e}
@media(max-width:782px){body.admin-bar header{top:46px}}

/* V5.8.1 typography refinement; original V5.8 layout retained */
nav,.brand,.btn,button,input,textarea,select{font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* V5.9: homepage social gallery slot */
.aoh-instagram-section{background:#f7f3eb}.aoh-instagram-feed{margin-top:28px;min-height:100px}.aoh-instagram-feed img{max-width:100%;height:auto}.aoh-instagram-feed .sbi_photo_wrap{border-radius:4px;overflow:hidden}


/* V5.9.2: WPForms contact form within original Contact page layout */
.aoh-contact-form .wpforms-container{margin:18px 0 0!important}
.aoh-contact-form .wpforms-field{padding:9px 0!important}
.aoh-contact-form .wpforms-field-label{font-weight:700!important;color:var(--forest)!important}
.aoh-contact-form input:not([type="checkbox"]):not([type="radio"]),
.aoh-contact-form select,.aoh-contact-form textarea{max-width:100%!important;width:100%!important;border:1px solid #cfc8bb!important;border-radius:3px!important;background:#fff!important;color:var(--ink)!important}
.aoh-contact-form .wpforms-submit{background:var(--forest)!important;color:#fff!important;border:0!important;border-radius:3px!important;font-weight:800!important;padding:12px 23px!important;height:auto!important}
.aoh-contact-form .wpforms-submit:hover{background:var(--deep)!important}
.aoh-contact-email{font-size:13px;margin:18px 0 0;overflow-wrap:anywhere}
.aoh-contact-email a{color:var(--forest);font-weight:700}
@media(max-width:900px){.aoh-contact-form{min-width:0}}
