/*
Theme Name: PTH Mattannur
Theme URI: https://example.org/
Author: Uvaiz
Description: Premium-style blue and white hospice charity WordPress theme with editable pages, gallery, donation information, and Elementor-friendly layout.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pth-mattannur
*/
:root{--pth-blue:#1475c9;--pth-dark:#174d7f;--pth-light:#eaf6ff;--pth-accent:#58b9ee;--pth-text:#24425e;--pth-muted:#657f96;--pth-white:#fff;--pth-radius:18px;--pth-shadow:0 12px 35px rgba(30,111,177,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--pth-text);font-family:Arial,Helvetica,sans-serif;line-height:1.7;background:#fff}a{color:var(--pth-blue);text-decoration:none}a:hover{color:var(--pth-accent)}img{max-width:100%;height:auto;display:block}.container{width:min(1160px,92%);margin:auto}.site-header{background:#fff;position:sticky;top:0;z-index:50;box-shadow:0 3px 18px rgba(16,54,94,.07)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:14px 0}.brand{display:flex;align-items:center;gap:12px;color:var(--pth-dark);font-size:20px;font-weight:800;line-height:1.2}.custom-logo{max-height:64px;width:auto}.brand-mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,var(--pth-blue),var(--pth-accent));display:grid;place-items:center;color:white;font-weight:900;font-size:22px}.brand small{display:block;font-size:11px;letter-spacing:1.6px;color:var(--pth-muted);font-weight:700;margin-top:5px}.main-navigation ul{display:flex;align-items:center;gap:22px;list-style:none;padding:0;margin:0}.main-navigation a{font-size:14px;font-weight:700;color:var(--pth-dark)}.main-navigation .menu-item:last-child a{background:var(--pth-blue);color:white;border-radius:999px;padding:10px 18px}.menu-toggle{display:none;border:0;background:var(--pth-blue);color:#fff;padding:10px 13px;border-radius:8px}.hero{padding:72px 0 62px;background:linear-gradient(125deg,#eff7ff 0%,#fff 58%,#e4f4ff 100%);overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:46px}.eyebrow{display:inline-flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:1.7px;color:var(--pth-blue);font-size:12px;font-weight:800}.eyebrow:before{content:"";width:28px;height:3px;background:var(--pth-accent);border-radius:5px}.hero h1{font-size:clamp(36px,5vw,62px);line-height:1.08;letter-spacing:-1.5px;color:var(--pth-dark);margin:18px 0}.hero p{font-size:17px;color:var(--pth-muted);max-width:600px}.button-row{display:flex;gap:13px;flex-wrap:wrap;margin-top:26px}.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:999px;font-weight:800;background:var(--pth-blue);color:#fff;border:2px solid var(--pth-blue);transition:.2s}.button:hover{background:var(--pth-dark);color:#fff;transform:translateY(-2px)}.button.secondary{background:#fff;color:var(--pth-blue)}.hero-visual{position:relative;min-height:380px;border-radius:32px;background:linear-gradient(135deg,#cce8ff,#f6fbff);display:grid;place-items:center;overflow:hidden;box-shadow:var(--pth-shadow)}.hero-visual img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.visual-placeholder{padding:30px;text-align:center;color:var(--pth-blue);font-weight:800}.visual-placeholder .vehicle{font-size:76px;display:block;line-height:1.4}.visual-placeholder span:last-child{display:block;font-size:13px;font-weight:500;color:var(--pth-muted)}.section{padding:76px 0}.section.soft{background:#f5faff}.section-head{text-align:center;max-width:700px;margin:0 auto 38px}.section-head .eyebrow{justify-content:center}.section h2{font-size:clamp(28px,3vw,40px);line-height:1.2;color:var(--pth-dark);margin:13px 0}.section-head p{color:var(--pth-muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border:1px solid #e5eef8;border-radius:var(--pth-radius);overflow:hidden;box-shadow:var(--pth-shadow)}.card-body{padding:24px}.card h3{margin:0 0 9px;color:var(--pth-dark);font-size:21px}.card p{margin:0;color:var(--pth-muted)}.icon-box{width:55px;height:55px;border-radius:16px;background:var(--pth-light);display:grid;place-items:center;font-size:26px;margin-bottom:18px}.split{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:center}.split-visual{min-height:330px;background:linear-gradient(135deg,#e5f3ff,#f7fbff);border-radius:28px;display:grid;place-items:center;text-align:center;padding:25px;color:var(--pth-blue);font-size:60px}.split-visual small{display:block;font-size:14px;color:var(--pth-muted)}.check-list{padding:0;list-style:none}.check-list li{padding:7px 0 7px 30px;position:relative}.check-list li:before{content:"✓";position:absolute;left:0;color:#148c70;font-weight:900}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gallery-item{min-height:210px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#d8edff,#f4faff);display:grid;place-items:center;text-align:center;padding:18px;color:var(--pth-blue);font-weight:800}.gallery-item img{width:100%;height:230px;object-fit:cover}.gallery-item .demo-icon{font-size:52px;display:block}.gallery-note{text-align:center;color:var(--pth-muted);font-size:13px;margin-top:20px}.cta-band{padding:46px;border-radius:26px;background:linear-gradient(120deg,var(--pth-blue),var(--pth-dark));color:#fff;display:flex;align-items:center;justify-content:space-between;gap:25px}.cta-band h2{color:#fff;margin:0 0 8px}.cta-band p{margin:0;color:#e0efff}.cta-band .button{background:#fff;color:var(--pth-blue);border-color:#fff;white-space:nowrap}.page-hero{padding:58px 0;background:linear-gradient(120deg,#edf6ff,#fff)}.page-hero h1{font-size:clamp(32px,4vw,48px);color:var(--pth-dark);margin:0 0 8px}.page-hero p{color:var(--pth-muted);margin:0}.content-area{padding:55px 0 75px}.entry-content{font-size:17px}.entry-content h2,.entry-content h3{color:var(--pth-dark)}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.info-panel{padding:28px;border-radius:18px;background:#f4f9ff;border:1px solid #e1edf8}.site-footer{background:#0d2d4e;color:#dceafa;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:35px}.site-footer h3{color:#fff;margin-top:0}.site-footer a{color:#dceafa}.site-footer p{color:#b8cce1}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:35px;padding-top:18px;font-size:13px;display:flex;justify-content:space-between;gap:20px}.donation-box{background:#f4f9ff;border:1px solid #d9eafa;padding:28px;border-radius:18px;overflow-wrap:anywhere}.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{padding:24px;border:1px solid #e5eef8;border-radius:18px}.post-card h2{font-size:22px}.pagination{margin-top:30px}.screen-reader-text{position:absolute;left:-9999px}.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}.alignfull{width:100%;max-width:none}.wp-block-button__link{border-radius:999px;background:var(--pth-blue)}@media(max-width:900px){.main-navigation{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:18px 4%;box-shadow:0 12px 20px #102e4a15}.main-navigation.is-open{display:block}.main-navigation ul{display:block}.main-navigation li{padding:10px 0}.menu-toggle{display:block}.hero-grid,.split{grid-template-columns:1fr}.hero{padding-top:45px}.hero-visual{min-height:290px}.cards,.gallery-grid,.post-list{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.cta-band{align-items:flex-start;flex-direction:column}}@media(max-width:580px){.cards,.gallery-grid,.post-list,.contact-grid,.footer-grid{grid-template-columns:1fr}.header-inner{padding:10px 0}.brand{font-size:16px}.brand-mark{width:40px;height:40px}.hero h1{letter-spacing:-.7px}.section{padding:54px 0}.cta-band{padding:28px}.footer-bottom{display:block}.hero-visual{min-height:245px}}

/* Draft-matched refinements v1.1.0 */
.topbar{background:#dff2ff;color:#174d7f;font-size:12px;padding:8px 0}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.topbar a{color:#174d7f;font-weight:700}
.site-header{box-shadow:0 4px 18px rgba(30,111,177,.08)}
.brand .custom-logo{max-width:220px;max-height:78px;object-fit:contain}
.hero{padding:0;background:#f3faff}
.hero-grid{min-height:430px;gap:0;grid-template-columns:.78fr 1.22fr}
.hero-copy{padding:48px 24px 48px 0;position:relative;z-index:2}
.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,4vw,54px);color:#164f8a}
.hero-visual{min-height:430px;border-radius:0 0 0 70px;box-shadow:none;background:#d8efff}
.hero-visual img{object-position:center;object-fit:cover}
.wave-divider{height:30px;background:linear-gradient(170deg,#fff 0 30%,#72c9f5 32% 52%,#1383d2 54% 70%,#fff 72%);margin-top:-1px}
.section-head h2{font-family:Georgia,'Times New Roman',serif;color:#16538d}
.service-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.service-tile{background:#edf7ff;border:1px solid #c8e7ff;border-radius:16px;padding:18px 12px;text-align:center;color:#15599b;font-weight:800}
.service-tile .tile-icon{display:block;font-size:34px;margin-bottom:8px}
.vehicle-card .vehicle-photo{height:220px;background:#e5f4ff;display:grid;place-items:center;font-size:58px}
.vehicle-card .vehicle-photo img{width:100%;height:100%;object-fit:cover}
.vehicle-card .card-body{padding:18px 22px}
.vehicle-card h3{font-size:22px}
.impact-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.impact-item{text-align:center;padding:22px;border-right:1px solid #b8ddf8}
.impact-item strong{display:block;font-size:27px;color:#15599b}
.impact-item span{color:#557895;font-size:14px}
.donation-cta{background:linear-gradient(120deg,#1475c9,#0758a5);color:#fff;border-radius:20px;padding:25px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.donation-cta h3{color:#fff;margin:0 0 5px}.donation-cta p{margin:0;color:#e1f2ff}
.gallery-item{border:1px solid #cde8ff}
.site-footer{background:#eaf6ff;color:#174d7f;padding-top:42px;position:relative}
.site-footer h3{color:#174d7f}.site-footer p{color:#557895}.site-footer a{color:#174d7f}
.footer-bottom{border-top:1px solid #b8ddf8;color:#eaf6ff;background:#0758a5;margin-top:30px;padding:17px 0}
.footer-bottom span{color:#eaf6ff}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-copy{padding:38px 0 25px}.hero-visual{min-height:300px;border-radius:22px}.service-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:580px){.topbar-inner{justify-content:center;text-align:center}.topbar-inner span{width:100%}.service-strip{grid-template-columns:repeat(2,1fr)}.hero-visual{min-height:235px}.impact-row{grid-template-columns:1fr}.impact-item{border-right:0;border-bottom:1px solid #b8ddf8}.donation-cta{flex-direction:column;align-items:flex-start}.brand .custom-logo{max-width:150px;max-height:55px}}

.theme-logo{width:220px;max-height:78px;object-fit:contain;background:transparent}@media(max-width:580px){.theme-logo{width:145px;max-height:54px}}


/* Small homepage changes requested by the site owner – original theme design retained */
.pth-editable-image { overflow:hidden; border-radius:18px; min-height:260px; }
.pth-editable-image img { display:block; width:100%; height:100%; min-height:260px; object-fit:cover; border-radius:18px; }
.pth-vehicle-images { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:center; }
.pth-vehicle-images img { display:block; width:100%; height:220px; object-fit:cover; border-radius:16px; }
.pth-news-thumb img { display:block; width:100%; height:190px; object-fit:cover; }
.pth-news-cards .card-body small { color:#58718a; }
.pth-news-cards .card-body h3 a { color:inherit; text-decoration:none; }
.pth-news-all { text-align:center; margin-top:20px; }
.gallery-grid .gallery-item img { display:block; width:100%; height:170px; object-fit:cover; border-radius:12px; }
.gallery-grid .gallery-item span { display:block; padding:9px; }
@media(max-width:760px) {
 .pth-vehicle-images { grid-template-columns:1fr; }
 .pth-vehicle-images img { height:200px; }
 .pth-editable-image, .pth-editable-image img { min-height:220px; }
 .pth-news-thumb img { height:180px; }
 .gallery-grid .gallery-item img { height:135px; }
}


/* v1.1.2 refinements */
.gallery-grid .gallery-item { display:block; padding:0; min-height:0; background:#eaf5ff; }
.gallery-grid .gallery-item img { width:100%; height:230px; object-fit:cover; border-radius:0; }
.pth-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:24px 0; }
.pth-team-card { padding:22px; border-radius:16px; border:1px solid #dcecf9; background:#f4f9ff; }
.pth-team-card h3 { margin:0 0 8px; }
.pth-team-card p { margin:0; color:var(--pth-muted); }
@media(max-width:580px){ .gallery-grid .gallery-item img { height:220px; } .pth-team-grid { grid-template-columns:1fr; } }

/* v1.1.4: contact map */
.pth-map-wrap { margin-top:16px; overflow:hidden; border-radius:12px; min-height:220px; }
.pth-map-wrap iframe { display:block; width:100%; height:260px; border:0; }
@media(max-width:580px){ .pth-map-wrap iframe { height:220px; } }

/* v1.1.5: optional gallery titles and homepage donation details */
.gallery-grid .gallery-item { position:relative; overflow:hidden; }
.gallery-grid .gallery-caption { display:block; padding:10px 12px; color:#245a7d; font-size:14px; font-weight:600; text-align:center; }
.pth-donation-details-section .section-head { max-width:760px; margin-left:auto; margin-right:auto; }
.donation-details-card { max-width:720px; margin:0 auto; padding:28px; border:1px solid #dcecf9; border-radius:20px; background:#f4f9ff; box-shadow:0 8px 28px rgba(34,93,130,.07); }
.donation-details-card h3 { margin-top:0; color:#21577b; }
.donation-details-card p { margin:0 0 14px; line-height:1.65; }
.pth-upi-button { display:inline-flex; align-items:center; justify-content:center; margin-top:8px; }
.pth-upi-id { margin-top:12px !important; }
.pth-payment-note { color:#627789; font-size:13px; }
@media(max-width:580px){ .donation-details-card { padding:20px; } }


/* PTH v1.2 targeted Gallery / Services display improvements */
.pth-photo-gallery-grid, .pth-services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin:24px 0; }
.pth-gallery-item, .pth-service-card { margin:0; overflow:hidden; border-radius:14px; background:#fff; box-shadow:0 4px 18px rgba(0,0,0,.08); }
.pth-gallery-item img, .pth-service-image img { display:block; width:100%; height:220px; object-fit:cover; }
.pth-gallery-item figcaption { padding:10px 12px; font-weight:600; }
.pth-service-body { padding:16px; }
.pth-service-body h3 { margin:0 0 10px; }
.pth-service-description { line-height:1.65; }
.pth-gallery-empty, .pth-services-empty { padding:16px; border-radius:10px; background:#fff5f5; }
@media (max-width:600px) { .pth-photo-gallery-grid, .pth-services-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .pth-gallery-item img, .pth-service-image img { height:150px; } }


/* PTH v1.2 Gallery and Services display */
.pth-photo-gallery-grid,.pth-services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin:24px 0}
.pth-gallery-item,.pth-service-card{margin:0;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.pth-gallery-item img,.pth-service-image img{display:block;width:100%;height:220px;object-fit:cover}
.pth-gallery-item figcaption{padding:10px 12px;font-weight:600}
.pth-service-body{padding:16px}.pth-service-body h3{margin:0 0 10px}.pth-service-description{line-height:1.65}
@media(max-width:600px){.pth-photo-gallery-grid,.pth-services-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pth-gallery-item img,.pth-service-image img{height:150px}}
