/* ==========================================================
   Shreyisha Engineering - main stylesheet
   Sections: Base, layout, header, hero, cards, forms (shared by every page) | Inner pages (banner, about, services, gallery, CTA, 404) | Contact page | Products page and homepage brand strip | Homepage execution process | Owner section, team page | Projects gallery and lightbox | Site header and footer (injected by script.js)
   ========================================================== */


/* ---------- Base, layout, header, hero, cards, forms (shared by every page) ---------- */
:root {
  --orange: #ff8a00; --orange-dark: #e67600; --navy: #14213d; --navy-2: #1f2f5a;
  --green: #2e9e5b; --ink: #1d1d1f; --muted: #6b7280; --line: #ececec; --soft: #f7f7f9; --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Poppins, Arial, sans-serif; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; }
.title { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; margin: 0 0 16px; font-weight: 700; }
.center { text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: var(--white); padding: 12px 26px; border-radius: 40px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
section { padding: 80px 0; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfd6e6; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--navy); }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--orange) 0 38%, transparent 40%), linear-gradient(var(--white), var(--white)); border: 3px solid var(--orange); }
.logo small { display: block; font-size: 11px; color: var(--orange); font-weight: 600; letter-spacing: .5px; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--orange); }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: var(--white); background: url("../assets/images/shr-hero.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,32,.85), rgba(10,16,32,.35)); }
.hero .container { position: relative; }
.hero h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.1; margin: 0 0 18px; max-width: 640px; }
.hero p { max-width: 560px; line-height: 1.7; margin: 0 0 28px; color: #e5e7eb; }

/* Stats */
.stats { padding: 50px 0; border-bottom: 1px solid var(--line); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { font-size: 30px; color: var(--navy); }
.stat strong span { color: var(--orange); }
.stat h4 { margin: 4px 0; font-size: 15px; }
.stat p { margin: 0; font-size: 13px; color: var(--muted); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(0,0,0,.15); transition: transform .25s; }
.card:hover { transform: translateY(-6px); }
.card img { height: 220px; width: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card a { color: var(--orange); font-weight: 600; font-size: 14px; }

/* =========================================================
   FEATURE SECTION: overlay background image + text + side image
   (scoped to .shr-feature)
   ========================================================= */
.shr-feature { position: relative; overflow: hidden; color: var(--white); padding: 0; isolation: isolate; }
.shr-feature__bg { position: absolute; inset: 0; z-index: -2; background: url("../assets/hero/hero-projects.webp") center 70% / cover no-repeat; }
.shr-feature__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,33,61,.94) 0%, rgba(31,47,90,.86) 45%, rgba(230,118,0,.85) 100%); }
.shr-feature__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 560px; }
.shr-feature__content { padding: 70px 40px 70px 0; }
.shr-feature__eyebrow { color: #ffc266; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 24px; }
.shr-feature__title { margin: 0; padding-left: 22px; border-left: 4px solid var(--white); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.1; }
.shr-feature__text { margin: 22px 0 28px; max-width: 460px; line-height: 1.7; color: rgba(255,255,255,.9); }
.shr-feature .btn { background: var(--white); color: var(--navy); }
.shr-feature .btn:hover { background: #ffe1bd; }
.shr-feature__media { align-self: stretch; position: relative; min-height: 420px; }
.shr-feature__media::before { content: ""; position: absolute; inset: 0 -40vw 0 -16px; border-radius: 0 0 0 100%; background: var(--orange); border-bottom-left-radius: 70% 100%; transform: translateX(-14px); }
.shr-feature__media img { position: absolute; inset: 0; right: -40vw; width: calc(100% + 40vw); height: 100%; object-fit: cover; border-bottom-left-radius: 70% 100%; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: 14px; width: 100%; height: 420px; object-fit: cover; }
.split p { color: var(--muted); line-height: 1.75; font-size: 15px; }
.quote { border-left: 4px solid var(--green); background: var(--soft); padding: 18px 22px; border-radius: 8px; margin: 22px 0; }
.quote h4 { margin: 0 0 4px; } .quote span { color: var(--orange); font-size: 13px; font-weight: 600; }
.quote p { margin: 8px 0 0; font-style: italic; font-size: 14px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.feature { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; }
.feature i { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font-style: normal; }
.bg-soft { background: var(--soft); }

/* Projects */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 36px; }
.filters button { border: 1px solid var(--line); background: var(--white); padding: 8px 18px; border-radius: 30px; cursor: pointer; font: 500 13px Poppins, sans-serif; }
.filters button.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project img { height: 230px; width: 100%; object-fit: cover; border-radius: 10px; }
.project small { display: block; color: var(--orange); margin-top: 10px; font-size: 12px; }
.project h4 { margin: 4px 0 0; font-size: 15px; }
.project.hide { display: none; }

/* Contact */
form { background: var(--white); padding: 32px; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.15); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: 14px Poppins, sans-serif; }
input:focus, textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
form .btn { width: 100%; justify-content: center; margin-top: 18px; }
.form-msg { color: var(--green); font-size: 14px; margin-top: 10px; min-height: 20px; }

/* Footer */
footer { background: var(--navy); color: #cfd6e6; padding: 60px 0 0; font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 30px; }
footer h4 { color: var(--white); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
footer a:hover { color: var(--orange); }
.copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px; margin-top: 40px; font-size: 13px; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; gap: 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; } .menu-btn { display: block; }
  .stats .grid, .features { grid-template-columns: 1fr 1fr; }
  .cards, .gallery { grid-template-columns: 1fr 1fr; }
  .split, .shr-feature__inner { grid-template-columns: 1fr; }
  .shr-feature__content { padding: 60px 0 40px; }
  .shr-feature__media { min-height: 320px; margin: 0 -24px; }
  .shr-feature__media::before, .shr-feature__media img { inset: 0; right: 0; width: 100%; border-radius: 60% 60% 0 0 / 30% 30% 0 0; transform: none; }
  .shr-feature__media::before { transform: translateY(-10px); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .cards, .gallery, .row, .foot { grid-template-columns: 1fr; }
  .split img { height: 280px; }
  .topbar .container span:last-child { display: none; }
}


/* ---------- Inner pages (banner, about, services, gallery, CTA, 404) ---------- */
:root { --page-overlay: rgba(20,33,61,.52); --page-shadow: 0 8px 28px -12px rgba(20,33,61,.16); }
.new-page { letter-spacing: 0; }
.new-page .container { max-width:1200px; }
.new-page section { padding:72px 0; }
.new-page .eyebrow { letter-spacing:0; }
.new-page .title { font-size:32px; }
.new-page .page-banner { padding:0; min-height:270px; position:relative; display:flex; align-items:center; background:url('../assets/hero/hero-about.webp') 70% center/cover; color:var(--white); }
.page-banner::before { content:''; position:absolute; inset:0; background:var(--page-overlay); }
.page-banner .container { position:relative; }
.page-banner h1 { font-size:44px; line-height:1.2; margin:0 0 14px; }
.page-banner p { font-size:13px; margin:0; }
.page-banner a:hover { text-decoration:underline; }
.new-page .stats { padding:54px 0; }
.new-page .stat strong { font-size:25px; }
.new-page .stat h4 { margin:10px 0; }
.new-page .stat p { line-height:1.7; }
.new-page .split { gap:44px; }
.new-page .split img { border-radius:4px; height:420px; }
.new-page .quote { background:var(--white); }
.new-page .cards { margin-top:36px; gap:24px; text-align:left; }
.new-page .cards.two { grid-template-columns:1fr 1fr; }
.new-page .card { border-radius:6px; box-shadow:var(--page-shadow); }
.new-page .card img { height:280px; }
.new-page .card-body { padding:25px; }
.new-page .card p { min-height:46px; }
.new-page .card a { color:var(--green); }
.new-page .icon { display:inline-grid; width:40px; height:40px; place-items:center; background:var(--orange); color:var(--white); border-radius:50%; margin-right:12px; vertical-align:middle; }
.new-page .benefits { list-style:none; padding:0; margin:24px 0 0; }
.new-page .benefits li { display:flex; align-items:center; gap:14px; margin:16px 0; font-size:14px; font-weight:500; }
.new-page .benefits .icon { flex-shrink:0; margin:0; width:34px; height:34px; }
.new-page .principle { background:var(--white); border-top:3px solid var(--green); padding:28px 32px; margin-bottom:20px; border-radius:4px; box-shadow:var(--page-shadow); }
.principle h3 { margin:0 0 12px; font-size:21px; }
.principle p { margin:0; }
.new-page .gallery { text-align:left; gap:32px 24px; }
.new-page .project img { height:auto; aspect-ratio:3/4; object-fit:cover; border-radius:4px; transition:filter .2s; }
.new-page .project img:hover { filter:brightness(1.04); }
.new-page .project h3 { font-size:17px; margin:6px 0 8px; }
.new-page .project p { font-size:13px; color:var(--muted); line-height:1.7; margin:0; }
.new-page [hidden] { display:none; }
.new-page .cta { border-top:1px solid var(--line); }
.new-page .cta .container { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.new-page .cta .title { margin:0; }
.new-page .cta p { margin:12px 0 0; color:var(--muted); }
a:focus-visible,button:focus-visible { outline:3px solid var(--orange); outline-offset:5px; }
@media(max-width:960px) { .new-page .cards.two { grid-template-columns:1fr 1fr; } .new-page .split img { height:380px; } .new-page .cta .container { align-items:flex-start; flex-direction:column; } }
@media(max-width:600px) { .new-page section { padding:48px 0; } .new-page .page-banner { min-height:220px; } .page-banner h1 { font-size:36px; } .new-page .title { font-size:26px; } .new-page .cards.two { grid-template-columns:1fr; } .new-page .split img { height:330px; } .new-page .gallery { grid-template-columns:1fr; } .new-page .stat strong { font-size:21px; } .new-page .stat p { font-size:12px; } .new-page .nav { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; } }
/* Per-page solar banner photos (subject kept on the right; left stays calm for the title). */
.new-page[data-page="/about"] .page-banner { background-image:url('../assets/hero/hero-about.webp'); background-position:60% center; }
.new-page[data-page="/services"] .page-banner { background-image:url('../assets/hero/hero-services.webp'); background-position:75% center; }
.new-page[data-page="/projects"] .page-banner { background-image:url('../assets/hero/hero-projects.webp'); background-position:center; }
.new-page[data-page="/team"] .page-banner { background-image:url('../assets/hero/hero-team.webp'); background-position:75% center; }
.new-page[data-page="/contact"] .page-banner { background-image:url('../assets/hero/hero-contact.webp'); background-position:80% center; }
.new-page[data-page="/404"] .page-banner { background-image:url('../assets/hero/hero-contact.webp'); background-position:80% center; }
.notfound { text-align:center; } .notfound p { margin:0 0 24px; }


/* ---------- Contact page ---------- */
.contact-page { --contact-shadow:0 8px 28px -12px color-mix(in srgb,var(--navy) 16%,transparent); --contact-error: #b42318; letter-spacing:0; }
.contact-page .eyebrow { letter-spacing:0; }
.contact-page .contact-band { margin:64px 0; padding:72px 0; background:var(--soft); }
.contact-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:60px; align-items:start; }
.contact-page form { border-radius:8px; padding:32px; box-shadow:var(--contact-shadow); }
.contact-page form h2 { font-size:26px; color:var(--navy); margin:0 0 8px; }
.contact-intro { font-size:13px; color:var(--muted); line-height:1.7; margin:0 0 18px; }
.contact-page input,.contact-page textarea { background:var(--soft); border-radius:5px; }
.contact-page textarea { resize:vertical; min-height:140px; }
.contact-page .btn { border-radius:5px; }
.contact-page .contact-status { color:var(--contact-error); font-size:13px; line-height:1.6; margin:12px 0 0; }
.contact-status:empty { display:none; }
.contact-map { border:0; width:100%; height:340px; display:block; border-radius:6px; background:var(--line); }
.contact-map-link { margin:20px 0 26px; text-align:center; }
.contact-details { font-size:14px; line-height:1.8; color:var(--muted); overflow-wrap:anywhere; }
.contact-details h2 { font-size:20px; color:var(--navy); margin:0 0 14px; }
.contact-details p { margin:10px 0; }
.contact-details strong { color:var(--navy); }
.contact-details a:hover { color:var(--orange-dark); text-decoration:underline; }
@media(max-width:960px) { .contact-layout { gap:32px; } .contact-page form { padding:24px; } .contact-page .row { grid-template-columns:1fr; } }
@media(max-width:700px) { .contact-layout { grid-template-columns:minmax(0,1fr); gap:36px; } .contact-page .contact-band { margin:36px 0; padding:48px 0; } .contact-map { height:300px; } }


/* ---------- Products page and homepage brand strip ---------- */
/* Products page + home "Brands We Install" strip (scoped to .shr-products / .shr-brands) */

/* Page banner */
.shr-products__banner { background: linear-gradient(rgba(20,33,61,.52), rgba(20,33,61,.52)), url("../assets/hero/hero-products.webp") 75% center / cover; color: var(--white); padding: 70px 0; text-align: center; }
.shr-products__banner h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); }
.shr-products__banner p { margin: 0; color: #cfd6e6; font-size: 15px; }

/* Category sections */
.shr-products__category { padding: 60px 0; }
.shr-products__category:nth-of-type(even) { background: var(--soft); }
.shr-products__category h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); color: var(--navy); }
.shr-products__category .cat-desc { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

/* Brand card grid: 2 cols mobile, 3 tablet, 4-5 desktop */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }

.brand-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 12px; transition: transform .2s, box-shadow .2s;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.25); }
.brand-card img { max-height: 56px; max-width: 100%; object-fit: contain; }
.brand-name { font-size: 12px; color: var(--muted); text-align: center; }
.brand-wordmark { font-weight: 700; font-size: 17px; color: var(--navy); text-align: center; }
.brand-icon { font-size: 30px; color: var(--orange); line-height: 1; }

/* Home strip */
.shr-brands { padding: 70px 0; background: var(--white); }
.shr-brands .brand-grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .shr-brands .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .shr-brands .brand-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; } }
.shr-brands .cta-row { text-align: center; margin-top: 36px; }

/* CTA banner */
.shr-products__cta { background: var(--orange); color: var(--white); text-align: center; padding: 60px 0; }
.shr-products__cta h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.shr-products__cta p { margin: 0 0 22px; color: rgba(255,255,255,.92); font-size: 15px; }
.shr-products__cta .btn { background: var(--white); color: var(--navy); }
.shr-products__cta .btn:hover { background: #ffe1bd; }


/* ---------- Homepage execution process ---------- */
/* Homepage-only process flow; inherits the existing Shreyisha brand tokens. */
.shr-process { letter-spacing:0; border-top:1px solid var(--line); }
.shr-process .eyebrow { letter-spacing:0; }
.shr-process .title { font-size:36px; }
.shr-process__flow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:56px 90px; list-style:none; padding:0; margin:48px 0 0; }
.shr-process__step { position:relative; display:flex; align-items:flex-start; gap:20px; min-height:112px; }
.shr-process__step:nth-child(1) { grid-area:1 / 1; }
.shr-process__step:nth-child(2) { grid-area:1 / 2; }
.shr-process__step:nth-child(3) { grid-area:2 / 2; }
.shr-process__step:nth-child(4) { grid-area:2 / 1; }
.shr-process__step:nth-child(5) { grid-area:3 / 1; }
.shr-process__step:nth-child(6) { grid-area:3 / 2; }
.shr-process__step:nth-child(7) { grid-area:4 / 2; }
.shr-process__step:nth-child(8) { grid-area:4 / 1; }
.shr-process__number { display:grid; place-items:center; width:56px; height:56px; flex:0 0 56px; border:1px solid var(--orange); border-radius:8px; background:color-mix(in srgb,var(--orange) 10%,var(--white)); color:var(--orange-dark); font-size:22px; font-weight:700; }
.shr-process__step h3 { color:var(--navy); font-size:20px; line-height:1.35; margin:0 0 10px; overflow-wrap:break-word; }
.shr-process__step p { color:var(--muted); font-size:14px; line-height:1.7; margin:0; max-width:350px; }
.shr-process__step::after { content:''; position:absolute; background:var(--orange); }
.shr-process__step::before { content:''; position:absolute; width:8px; height:8px; border-top:2px solid var(--orange); border-right:2px solid var(--orange); }
.shr-process__step:nth-child(1)::after,.shr-process__step:nth-child(5)::after { width:58px; height:2px; right:-74px; top:27px; }
.shr-process__step:nth-child(1)::before,.shr-process__step:nth-child(5)::before { right:-74px; top:24px; transform:rotate(45deg); }
.shr-process__step:nth-child(3)::after,.shr-process__step:nth-child(7)::after { width:58px; height:2px; left:-74px; top:27px; }
.shr-process__step:nth-child(3)::before,.shr-process__step:nth-child(7)::before { left:-74px; top:24px; transform:rotate(-135deg); }
.shr-process__step:nth-child(2)::after,.shr-process__step:nth-child(4)::after,.shr-process__step:nth-child(6)::after { width:2px; height:40px; left:27px; bottom:-48px; }
.shr-process__step:nth-child(2)::before,.shr-process__step:nth-child(4)::before,.shr-process__step:nth-child(6)::before { left:24px; bottom:-48px; transform:rotate(135deg); }
.shr-process__step:last-child::before,.shr-process__step:last-child::after { display:none; }
@media(max-width:960px) {
  .shr-process__flow { column-gap:64px; }
  .shr-process__step { gap:14px; min-height:140px; }
  .shr-process__step:nth-child(1)::after,.shr-process__step:nth-child(5)::after { width:40px; right:-52px; }
  .shr-process__step:nth-child(1)::before,.shr-process__step:nth-child(5)::before { right:-52px; }
  .shr-process__step:nth-child(3)::after,.shr-process__step:nth-child(7)::after { width:40px; left:-52px; }
  .shr-process__step:nth-child(3)::before,.shr-process__step:nth-child(7)::before { left:-52px; }
}
@media(max-width:700px) {
  .shr-process .title { font-size:28px; }
  .shr-process__flow { grid-template-columns:minmax(0,1fr); gap:40px; margin-top:36px; }
  .shr-process__flow .shr-process__step { grid-area:auto; min-height:0; gap:16px; }
  .shr-process__step h3 { font-size:18px; }
  .shr-process__step p { max-width:none; }
  .shr-process__flow .shr-process__step::after { width:2px; height:24px; left:27px; right:auto; top:auto; bottom:-32px; }
  .shr-process__flow .shr-process__step::before { left:24px; right:auto; top:auto; bottom:-32px; transform:rotate(135deg); }
}


/* ---------- Owner section, team page ---------- */
/* Owner portrait blocks: About "Meet the Owner", homepage strip, Team featured card. */
.owner-photo { background:#FFF3E0; border-radius:16px; padding:18px 18px 0; overflow:hidden; }
.owner-photo img { display:block; width:100%; aspect-ratio:4/5; height:auto !important; object-fit:cover; object-position:top center; border-radius:10px 10px 0 0; }
.owner-section .owner-grid { display:grid; grid-template-columns:40% 1fr; gap:48px; align-items:center; }
.owner-name { font-size:30px; font-weight:800; color:#1A2A36; margin:4px 0 2px; }
.owner-role { color:#FF9500; font-weight:600; margin:0 0 18px; }
.owner-msg { line-height:1.8; margin:0 0 24px; }
.owner-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.btn-outline { display:inline-block; padding:12px 22px; border:2px solid #1A2A36; border-radius:999px; color:#1A2A36; font-weight:600; text-decoration:none; }
.btn-outline:hover { background:#1A2A36; color:#fff; }
.owner-team-link { display:inline-block; margin-top:18px; color:#FF9500; font-weight:600; text-decoration:none; }
.owner-team-link:hover { text-decoration:underline; }
.owner-strip { padding:28px 0 !important; }
.owner-strip .container { display:flex; align-items:center; gap:22px; background:#F6F7F8; border-radius:16px; padding:18px 22px; }
.owner-strip img { width:120px; height:120px; flex-shrink:0; object-fit:cover; object-position:top center; border-radius:16px; background:#FFF3E0; }
.owner-strip h3 { margin:0 0 6px; font-size:19px; color:#1A2A36; }
.owner-strip p { margin:0 0 6px; }
.owner-strip a { color:#FF9500; font-weight:600; text-decoration:none; }
.team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:24px; margin-top:36px; text-align:left; }
.team-card.featured { grid-column:1/-1; display:grid; grid-template-columns:minmax(240px,360px) 1fr; gap:40px; align-items:center; background:#fff; border-radius:16px; padding:28px; box-shadow:0 8px 28px -12px rgba(20,33,61,.16); }
@media(max-width:760px){ .owner-section .owner-grid,.team-card.featured { grid-template-columns:1fr; gap:28px; } .owner-section .owner-photo,.team-card.featured .owner-photo { max-width:320px; margin:0 auto; width:100%; } .owner-strip .container { flex-direction:column; text-align:center; } }


/* ---------- Projects gallery and lightbox ---------- */
/* Shreyisha Engineering — Projects gallery (cards, filters, lightbox).
   Scoped to .pj-* classes; uses brand tokens from shreyisha-shared.css. */

.pj-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 36px; }
.pj-filters button { border: 1px solid var(--line); background: var(--white); padding: 8px 18px; border-radius: 30px; cursor: pointer; font: 500 13px Poppins, sans-serif; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.pj-filters button:hover { border-color: var(--orange); color: var(--orange); }
.pj-filters button.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.pj-filters button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; transition: opacity .18s ease; }
.pj-grid.is-fading { opacity: 0; }

.pj-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px -12px rgba(0,0,0,.18); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.pj-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px -14px rgba(0,0,0,.25); }
.pj-card.is-hidden { display: none; }

.pj-card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.pj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-card__media:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

.pj-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pj-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.pj-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pj-card__body h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.pj-card__body p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.pj-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.pj-meta__item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pj-meta__item svg { width: 13px; height: 13px; color: var(--orange); flex: none; }

/* Lightbox */
.pj-lightbox { position: fixed; inset: 0; z-index: 200; display: none; }
.pj-lightbox.is-open { display: block; }
.pj-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,16,32,.85); }
.pj-lightbox__panel { position: relative; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.pj-lightbox__img { max-width: min(1000px, 92vw); max-height: 72vh; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); object-fit: contain; }
.pj-lightbox__panel figcaption { text-align: center; margin-top: 16px; max-width: 640px; }
.pj-lightbox__title { color: var(--white); margin: 0 0 6px; font-size: 20px; }
.pj-lightbox__desc { color: #cfd6e6; margin: 0; font-size: 14px; line-height: 1.6; }
.pj-lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.pj-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.pj-lightbox__nav:hover { background: var(--orange); }
.pj-lightbox__nav--prev { left: 18px; }
.pj-lightbox__nav--next { right: 18px; }
.pj-lightbox__close:focus-visible, .pj-lightbox__nav:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

@media (max-width: 960px) {
  .pj-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pj-grid { grid-template-columns: 1fr; }
  .pj-lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .pj-lightbox__nav--prev { left: 8px; }
  .pj-lightbox__nav--next { right: 8px; }
}


/* ---------- Site header and footer (injected by script.js) ---------- */
:root {
  --footer-bg: #1A2A36;
  --footer-text: rgba(255, 255, 255, .78);
  --footer-line: rgba(255, 255, 255, .14);
  --footer-accent: #FF9500;
}
.site-header .logo, .site-footer .logo { gap: 12px; flex-shrink: 0; letter-spacing: 0; }
.site-header .brand-image, .site-footer .brand-image { width: 60px; height: 48px; object-fit: contain; flex-shrink: 0; }
.site-header .logo small, .site-footer .logo small { letter-spacing: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-text); padding: 0; font-size: 14px; }
.site-footer .footer-partners { padding: 56px 0 40px; }
.site-footer .footer-partners h3 { color: #fff; font-size: 20px; font-weight: 600; margin: 0 0 22px; line-height: 1.4; }
.site-footer .partner-list { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-footer .partner-list a {
  display: grid; place-items: center; height: 88px; padding: 10px 14px;
  background: #fff; border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
  outline: 2px solid transparent; outline-offset: 0;
}
.site-footer .partner-list img { width: auto; height: 64px; max-width: 100%; object-fit: contain; }
.site-footer .partner-list a:hover { transform: translateY(-3px); outline-color: var(--footer-accent); box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); }
.site-footer .partner-list a:focus-visible { outline-color: var(--footer-accent); outline-offset: 3px; }
.site-footer .footer-divider { border-top: 1px solid var(--footer-line); }
.site-footer .footer-main { display: grid; grid-template-columns: 1.25fr .65fr 1.25fr 1fr; gap: 40px; padding: 44px 0 24px; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 0 0 18px; line-height: 1.45; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer .logo { color: #fff; width: fit-content; }
.site-footer .brand-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; padding: 5px; background: #fff; border-radius: 12px; flex-shrink: 0; }
.site-footer .brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.site-footer .brand-name { color: #fff; font-weight: 700; font-size: 19px; line-height: 1.3; }
.site-footer .brand-link { display: flex; align-items: center; gap: 14px; }
.site-footer .brand-link:hover { color: #fff; }
.site-footer .footer-summary { margin: 18px 0 0; line-height: 1.8; max-width: 300px; }
.site-footer .footer-links li + li { margin-top: 10px; }
.site-footer .footer-links a { display: inline-block; min-height: 24px; transition: transform .2s ease; }
.site-footer .footer-links a:hover { transform: translateX(4px); }
.site-footer .footer-contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; margin-bottom: 16px; }
.site-footer .footer-contact svg { flex-shrink: 0; margin-top: 3px; }
.site-footer a { overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--footer-accent); }
.site-footer .footer-brand .brand-link:hover, .site-footer .partner-list a:hover { color: inherit; }
.site-footer a:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 5px; }
.site-footer address { font-style: normal; }
.site-footer .footer-cta p { margin: 0 0 20px; line-height: 1.7; }
.site-footer .footer-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 12px 26px; border-radius: 999px;
  background: var(--footer-accent); color: #fff; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-footer .footer-cta-btn:hover { background: #ffab33; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(255,149,0,.55); }
.site-footer .copy { margin: 0; border-top: 1px solid var(--footer-line); padding: 22px 24px; color: rgba(255,255,255,.6); line-height: 1.6; text-align: center; }

/* Back to top */
.site-footer .back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--footer-accent); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255,149,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.site-footer .back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.site-footer .back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .site-footer .partner-list a, .site-footer .footer-links a, .site-footer .footer-cta-btn, .site-footer .back-to-top { transition: none; transform: none; }
  .site-footer .footer-links a:hover { transform: none; }
}

@media (max-width: 960px) {
  .site-footer .footer-main { gap: 32px; grid-template-columns: 1fr 1fr; }
  .site-footer .partner-list { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  .site-header .brand-image { width: 48px; height: 42px; }
  .site-header .logo { font-size: 17px; gap: 9px; }
  .site-footer .footer-partners { padding: 40px 0 30px; }
  .site-footer .footer-partners h3 { font-size: 18px; }
  .site-footer .partner-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; padding-bottom: 26px; }
  .site-footer .footer-summary { max-width: none; }
  .site-footer .brand-badge { width: 50px; height: 50px; }
}
.topbar a { color:inherit; text-decoration:none; } .topbar a:hover { text-decoration:underline; }


/* ---------- Fixed navbar on scroll ---------- */
/* #site-header only wraps the top bar and header, so "display: contents" lets the
   header stick relative to the whole page instead of its own small wrapper. */
#site-header { display: contents; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 960px) { html { scroll-padding-top: 84px; } }

/* ---------- Form status messages ---------- */
.form-msg.is-error { color: #c0392b; }
.contact-page .contact-status.is-success { color: var(--green); }
