/* ============================================================
   Pacific Exteriors — stylesheet
   Palette taken from the logo: deep navy + sky-blue water droplet
   ============================================================ */

:root {
    --navy:        #163a5f;
    --navy-deep:   #0e2840;
    --navy-soft:   #1f4d77;
    --blue:        #3fa3d6;
    --blue-bright: #57bdec;
    --blue-light:  #9bd4ee;
    --sky:         #eef6fb;
    --sky-2:       #e0eef7;
    --ink:         #1d2c3a;
    --muted:       #5d6f7e;
    --line:        #e4e9ee;
    --white:       #ffffff;

    --radius:   16px;
    --radius-sm:10px;
    --shadow:   0 18px 50px -22px rgba(22, 58, 95, .35);
    --shadow-sm:0 8px 24px -14px rgba(22, 58, 95, .35);
    --maxw: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; color: var(--navy); line-height: 1.15; }

.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--blue); }

/* ───────────── Buttons ───────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    padding: .72rem 1.4rem;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(63, 163, 214, .8);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(22, 58, 95, .6); }

.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.4); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ───────────── Navbar ───────────── */
#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s, background .3s;
}
#navbar.scrolled { box-shadow: 0 6px 24px -16px rgba(22,58,95,.5); border-color: var(--line); }

.nav-inner {
    width: min(var(--maxw), 100% - 2.5rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.nav-logo { display: flex; align-items: center; gap: .65rem; }
.nav-logo img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.nav-logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.18rem; color: var(--navy); letter-spacing: .01em; }
.nav-logo-text em { font-style: normal; font-weight: 600; color: var(--blue); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-weight: 500;
    font-size: .96rem;
    color: var(--ink);
    position: relative;
    padding: .25rem 0;
    transition: color .2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.nav-phone svg { color: var(--blue); }
.nav-phone:hover { color: var(--blue); }

.nav-burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav-burger span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger span:nth-child(1) { top: 2px; }
.nav-burger span:nth-child(2) { top: 11px; }
.nav-burger span:nth-child(3) { top: 20px; }
.nav-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ───────────── Mobile menu ───────────── */
.mobile-menu {
    position: fixed;
    inset: 74px 0 auto 0;
    background: #fff;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
    box-shadow: var(--shadow);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu > a:not(.btn) { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--navy); padding: .35rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: .3rem; }

/* ───────────── Hero ───────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: var(--navy) center/cover no-repeat;
    transform: scale(1.05);
    animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.14); } }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg, rgba(14,40,64,.92) 0%, rgba(22,58,95,.78) 45%, rgba(22,58,95,.35) 100%),
        linear-gradient(0deg, rgba(14,40,64,.7), transparent 55%);
}
.hero-content { position: relative; width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; max-width: 760px; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.3rem;
}
.hero h1 span { color: var(--blue-light); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem 1.8rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.92); }
.hero-trust svg { color: var(--blue-light); }

/* ───────────── Sections ───────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: linear-gradient(180deg, var(--sky), #fff); }

.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 1rem; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 1.07rem; }

/* ───────────── Services ───────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.1rem 1.8rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky), var(--sky-2));
    color: var(--blue);
    margin-bottom: 1.3rem;
    transition: background .35s, color .35s, transform .35s var(--ease);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; transform: scale(1.05) rotate(-3deg); }
.service-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .97rem; }

/* ───────────── Why us ───────────── */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.why-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.1rem; }
.why-lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; margin-bottom: 2.4rem; }
.why-list li { display: flex; gap: 1.1rem; }
.why-num {
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--sky);
    color: var(--blue);
}
.why-list h4 { font-size: 1.12rem; margin-bottom: .3rem; }
.why-list p { color: var(--muted); font-size: .97rem; }

.why-media { position: relative; }
.why-photo {
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    background: var(--navy) center/cover no-repeat;
    box-shadow: var(--shadow);
}
.why-badge {
    position: absolute;
    bottom: -22px; left: -22px;
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    box-shadow: var(--shadow);
}
.why-badge strong { font-family: 'Poppins', sans-serif; font-size: 1.9rem; color: var(--blue-light); }
.why-badge span { font-size: .8rem; line-height: 1.25; color: rgba(255,255,255,.85); }

/* ───────────── Gallery ───────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1.1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy) center/cover no-repeat;
    grid-column: span 2;
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(14,40,64,.78));
    transition: opacity .35s;
}
.gallery-item figcaption {
    position: absolute;
    left: 1.2rem; bottom: 1.1rem;
    z-index: 2;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    transform: translateY(6px);
    transition: transform .35s var(--ease);
}
.gallery-item:hover figcaption { transform: translateY(0); }

/* ───────────── Contact ───────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.contact-copy > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2rem; }
.contact-methods { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.contact-methods li { display: flex; align-items: center; gap: 1rem; }
.contact-ic {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 13px;
    background: var(--sky);
    color: var(--blue);
    display: grid; place-items: center;
}
.contact-ic svg { width: 24px; height: 24px; }
.contact-methods small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .1rem; }
.contact-methods a { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.02rem; word-break: break-word; }
.contact-methods a:hover { color: var(--blue); }

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-weight: 600; font-size: .85rem; color: var(--navy); }
.field input, .field select, .field textarea {
    font-family: inherit;
    font-size: .97rem;
    color: var(--ink);
    padding: .8rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfdfe;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(63,163,214,.15);
}
.form-hint { text-align: center; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.form-hint a { color: var(--blue); font-weight: 600; }

/* ───────────── Footer ───────────── */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.footer-brand img { width: 54px; height: 54px; border-radius: 12px; margin-bottom: 1rem; }
.footer-brand p { font-size: .96rem; max-width: 330px; }
.footer-col h5 { color: #fff; font-size: 1.02rem; margin-bottom: 1.1rem; }
.footer-col a { display: block; font-size: .94rem; padding: .3rem 0; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    padding-top: 1.6rem;
    padding-bottom: 1.8rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .87rem;
}
.footer-bottom a:hover { color: var(--blue-light); }

/* ───────────── Sticky mobile call ───────────── */
.sticky-call {
    display: none;
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: var(--blue);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: .95rem;
    border-radius: 50px;
    box-shadow: 0 14px 30px -10px rgba(22,58,95,.6);
}

/* ───────────── Reveal animation ───────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg { animation: none; }
    html { scroll-behavior: auto; }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 980px) {
    .why-grid, .contact-grid { grid-template-columns: 1fr; }
    .why-media { max-width: 460px; margin-inline: auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .nav-links, .nav-phone, .nav-cta { display: none; }
    .nav-burger { display: block; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .gallery-tall { grid-row: span 1; }
    .gallery-item, .gallery-wide { grid-column: span 1; }
    .sticky-call { display: flex; }
    .footer { padding-bottom: 88px; }
}

@media (max-width: 520px) {
    .container { width: calc(100% - 2rem); }
    .hero { min-height: auto; padding: 110px 0 70px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .field-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .why-badge { left: 0; }
}
