/* MAJ Home Improvement LLC — shared styles */
:root {
  --orange: #d9681e;
  --orange-dark: #b9530f;
  --charcoal: #2a3340;
  --charcoal-deep: #1d242e;
  --gold: #e8b33a;
  --white: #ffffff;
  --off-white: #f5f3f0;
  --text: #1f2630;
  --muted: #5a6472;
  --radius: 10px;
  --max: 1180px;
  --head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--charcoal); color: var(--white); }
.eyebrow { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--orange); margin-bottom: .6rem; }
.section--dark .eyebrow { color: var(--gold); }
.rule { width: 64px; height: 4px; background: var(--orange); border: 0; margin: 0 0 1.5rem; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.center .lead { margin-inline: auto; }

/* Accessibility */
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--orange); color: var(--white); padding: .7rem 1rem; z-index: 1000; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 6px; font-family: var(--head); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 48px; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--charcoal); color: var(--white); border-bottom: 3px solid var(--orange); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 40px; width: auto; }
@media (min-width: 900px) { .logo img { height: 48px; } }
.logo--footer img { height: 52px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 2px solid rgba(255,255,255,.35); border-radius: 8px; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--charcoal-deep); border-bottom: 3px solid var(--orange); }
.primary-nav.is-open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.primary-nav a { display: block; padding: .9rem .25rem; color: var(--white); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.primary-nav a[aria-current="page"] { color: var(--orange); }
.primary-nav a:hover { color: var(--gold); }
.header-actions { display: none; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; background: none; border: 0; }
  .primary-nav ul { display: flex; gap: 1.8rem; padding: 0; }
  .primary-nav a { border: 0; padding: .4rem 0; font-size: 1rem; border-bottom: 3px solid transparent; }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--white); }
  .header-actions { display: flex; align-items: center; gap: 1rem; }
  .header-cta { padding: .6rem 1.1rem; font-size: .95rem; white-space: nowrap; }
  .header-phone { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; border: 2px solid rgba(255,255,255,.35); border-radius: 6px; padding: 0 .6rem; }
  .header-phone:hover { border-color: var(--orange); color: var(--gold); }
  .header-phone svg { width: 18px; height: 18px; color: var(--orange); }
  .header-phone-num { display: none; }
}
@media (min-width: 1200px) { .header-phone-num { display: inline; } .header-phone { border: 0; padding: 0; } }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--charcoal-deep); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(29,36,46,.93) 0%, rgba(29,36,46,.78) 45%, rgba(29,36,46,.35) 100%); }
.hero-content { position: relative; z-index: 1; padding: clamp(4.5rem, 14vw, 8.5rem) 0; max-width: 46rem; }
.hero h1 { margin-bottom: .3em; }
.hero h1 span { color: var(--orange); display: block; }
.hero-tag { display: flex; align-items: center; gap: .9rem; font-family: var(--head); font-size: clamp(1.15rem, 3vw, 1.5rem); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.hero-tag::before { content: ""; width: 42px; height: 3px; background: var(--gold); }
.hero-based { color: rgba(255,255,255,.85); margin-bottom: 2rem; }

.page-hero { background: var(--charcoal); color: var(--white); padding: clamp(3rem, 9vw, 5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -8%; top: 0; bottom: 0; width: 40%; background: var(--orange); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { max-width: 36rem; color: rgba(255,255,255,.88); margin: 0; }
@media (max-width: 640px) { .page-hero::after { width: 30%; right: -14%; } }

/* Services band */
.services-band { background: var(--orange); color: var(--white); position: relative; }
.services-band h2 { color: var(--white); }
.services-band .rule { background: var(--charcoal); }
.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 2rem 0 0; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-grid li { background: rgba(29,36,46,.92); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.service-grid svg { width: 40px; height: 40px; color: var(--orange); }

/* Service cards */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem; border-top: 5px solid var(--orange); box-shadow: 0 6px 24px rgba(29,36,46,.08); }
.card-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--charcoal); color: var(--orange); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { text-transform: uppercase; color: var(--charcoal); }
.card p { color: var(--muted); margin: 0; }

/* Meet Majed */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.about-photo { position: relative; max-width: min(420px, 82vw); margin-inline: auto; width: 100%; }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--orange); border-radius: var(--radius); }
.about-photo img { position: relative; border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about-text p { font-size: 1.15rem; }

/* Gallery grid */
.gallery-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 2rem 0 0; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .gallery-grid--full { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid li[hidden] { display: none; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--charcoal); border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .35s; }
.thumb:hover img, .thumb:focus-visible img { transform: scale(1.04); opacity: .9; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.filter-btn { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: .6rem 1.2rem; min-height: 44px; border-radius: 999px; border: 2px solid var(--charcoal); background: var(--white); color: var(--charcoal); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.gallery-count { color: var(--muted); margin-top: 1rem; font-size: .95rem; }

/* Video tours */
.video-grid { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 300px); justify-content: center; list-style: none; padding: 0; margin: 2rem 0 0; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 1.4rem; } }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(29,36,46,.08); border-top: 5px solid var(--orange); display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 9 / 16; background: var(--charcoal-deep); }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--charcoal-deep); display: block; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--white); background: linear-gradient(180deg, rgba(29,36,46,0) 45%, rgba(29,36,46,.55) 100%); }
.video-play[hidden] { display: none; }
.video-play svg { width: 34px; height: 34px; box-sizing: content-box; padding: 20px 18px 20px 22px; border-radius: 50%; background: var(--orange); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: background .2s, transform .2s; }
.video-play:hover svg, .video-play:focus-visible svg { background: var(--orange-dark); transform: scale(1.06); }
.video-play:focus-visible { outline-offset: -6px; }
.video-meta { padding: 1.1rem 1.2rem 1.3rem; }
.video-meta h3 { text-transform: uppercase; color: var(--charcoal); margin-bottom: .3em; }
.video-meta p { color: var(--muted); margin: 0; font-size: .98rem; }
.video-dur { display: inline-block; margin-left: .25rem; font-family: var(--head); letter-spacing: .08em; font-size: .85rem; color: var(--charcoal); background: var(--off-white); border-radius: 4px; padding: .05rem .45rem; }
.section--alt .video-dur { background: #ebe8e3; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(15,19,25,.96); display: flex; align-items: center; justify-content: center; padding: 4rem .5rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 4px; touch-action: pan-y; user-select: none; }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: .95rem; margin-top: .8rem; text-align: center; padding: 0 1rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--orange); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: .8rem; transform: none; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }
.lb-counter { position: absolute; top: 1.3rem; left: 1.2rem; color: rgba(255,255,255,.8); font-family: var(--head); letter-spacing: .1em; }
body.no-scroll { overflow: hidden; }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--orange); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-inner h2 { margin: 0; }
.cta-inner p { margin: .3rem 0 0; color: rgba(255,255,255,.8); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.contact-methods { display: grid; gap: 1rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; background: var(--charcoal); color: var(--white); border-radius: var(--radius); text-decoration: none; border-left: 5px solid var(--gold); transition: background .2s; }
.contact-method:hover { background: var(--charcoal-deep); }
.contact-method .ic { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--orange); display: grid; place-items: center; }
.contact-method .ic svg { width: 24px; height: 24px; color: var(--white); }
.contact-method small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: rgba(255,255,255,.7); }
.contact-method strong { font-size: clamp(1.05rem, 3.6vw, 1.3rem); word-break: break-word; }
.based { margin-top: 1.5rem; display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.based svg { width: 22px; height: 22px; color: var(--orange); flex: none; }

.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 6px 28px rgba(29,36,46,.1); border-top: 5px solid var(--orange); }
.notice { background: #fff6ee; border: 1px solid #f1c9a6; border-left: 5px solid var(--orange); padding: 1rem 1.1rem; border-radius: 6px; font-size: .98rem; margin-bottom: 1.5rem; }
.notice strong { color: var(--charcoal); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--charcoal); }
.req { color: var(--orange-dark); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 2px solid #cfd4da; border-radius: 6px; background: var(--white); color: var(--text); min-height: 48px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(217,104,30,.25); }
.field-error { color: #b3261e; font-size: .9rem; margin-top: .3rem; }
[aria-invalid="true"] { border-color: #b3261e; }
.form-status { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 6px; background: var(--off-white); border-left: 5px solid var(--charcoal); }
.form-status[hidden] { display: none; }
.form-status--sending { border-left-color: var(--gold); }
.form-status--success { background: #edf7ef; border-left-color: #2e7d32; }
.form-status--success strong { color: #1e5b23; }
.form-status--error { background: #fdeeee; border-left-color: #b3261e; }
.form-status--error strong { color: #8c1d18; }
.form-status a { font-weight: 600; }
/* Spam trap: hidden from people, left for bots to fill in */
.hp-field { display: none !important; }
/* Send button states */
.form-submit[disabled] { opacity: .75; cursor: progress; }
.form-submit .spinner { display: none; width: 1.1em; height: 1.1em; border: 2px solid rgba(255,255,255,.45); border-top-color: var(--white); border-radius: 50%; animation: maj-spin .8s linear infinite; flex: none; }
#quote-form.is-sending .form-submit .spinner { display: inline-block; }
#quote-form.is-sending .form-submit .btn-icon { display: none; }
@keyframes maj-spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { background: var(--charcoal-deep); color: rgba(255,255,255,.85); padding: 3rem 0 6.5rem; border-top: 4px solid var(--orange); }
@media (min-width: 900px) { .site-footer { padding-bottom: 2rem; } }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; letter-spacing: .14em; color: var(--white); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.6); }

/* Mobile call bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; background: var(--charcoal-deep); border-top: 3px solid var(--orange); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 58px; color: var(--white); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; }
.mobile-bar a:first-child { background: var(--orange); }
.mobile-bar svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Preferred consultation time */
.field-group { border: 2px solid #e3e6ea; border-radius: 8px; padding: 1rem 1rem .4rem; margin: 0 0 1.1rem; }
.field-group legend { font-weight: 700; color: var(--charcoal); padding: 0 .4rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .92rem; }
.hint { font-size: .92rem; color: var(--muted); margin: -.3rem 0 .6rem; }
/* anchor target clears sticky header */
#estimate { scroll-margin-top: 90px; }
