/* ============================================================
   MocPol Remodeling LLC — Shared Stylesheet
============================================================ */

/* ---- Variables ---- */
:root {
    --black:      #0a0a0a;
    --navy:       #1a2a4a;
    --navy-light: #243660;
    --gold:       #c9a84c;
    --gold-light: #e0bc6a;
    --gold-dark:  #a8893e;
    --cream:      #f5f0e8;
    --gray-dark:  #141414;
    --gray-mid:   #2a2a2a;
    --muted:      #787878;
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --t:          0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--black);
    color: var(--cream);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.15;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ---- Utilities ---- */
.eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.6rem;
}

.gold-rule {
    width: 52px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 1rem 0 2.5rem;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-block; cursor: pointer; text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    padding: 1rem 2.6rem; border: none;
    transition: all var(--t);
}
.btn-gold    { background: var(--gold); color: var(--black); }
.btn-gold:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(201,168,76,0.28); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }


/* ============================================================
   NAVIGATION
============================================================ */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.6rem 0;
    transition: background var(--t), padding var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}
#nav.nav-solid {
    background: #ffffff;
    border-bottom-color: rgba(0,0,0,0.1);
    padding: 0.6rem 0;
}

.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center;
    text-decoration: none;
    transition: opacity var(--t);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo-img {
    height: 64px; width: auto; display: block;
}

.nav-links { display: flex; align-items: center; gap: 2.4rem; list-style: none; }
.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--navy); text-decoration: none;
    position: relative; transition: color var(--t);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: width var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
    background: var(--gold) !important;
    color: var(--black) !important;
    padding: 0.5rem 1.3rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--navy); transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile fullscreen menu */
#mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(8,8,8,0.99); z-index: 999;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.8rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; color: var(--cream);
    text-decoration: none; transition: color var(--t);
}
#mobile-menu a:hover { color: var(--gold); }
#mobile-menu .m-cta {
    background: var(--gold); color: var(--black) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1rem !important; font-weight: 700 !important;
    letter-spacing: 0.2em; text-transform: uppercase;
    padding: 0.85rem 2.5rem; margin-top: 0.5rem;
}
#mobile-menu .m-divider {
    width: 40px; height: 1px;
    background: rgba(201,168,76,0.3); margin: 0.2rem 0;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem; margin-bottom: 3rem;
}
.footer-logo {
    height: 80px; width: auto; margin-bottom: 1.2rem; display: block;
}
.footer-desc { font-size: 0.84rem; color: #444; line-height: 1.7; }

.f-col-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.2rem;
}
.f-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.f-links a {
    font-size: 0.84rem; color: #444;
    text-decoration: none; transition: color var(--t);
}
.f-links a:hover { color: var(--black); }

.f-contact-line { font-size: 0.84rem; color: #444; margin-bottom: 0.6rem; }
.f-contact-line a { color: inherit; text-decoration: none; transition: color var(--t); }
.f-contact-line a:hover { color: var(--black); }

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 1.6rem; text-align: center;
    font-size: 0.72rem; letter-spacing: 0.06em;
    color: rgba(0,0,0,0.35);
}

/* ============================================================
   SHARED: INNER PAGE HERO
============================================================ */
.page-hero {
    padding: 9rem 0 4rem;
    background: var(--black);
    position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--cream); }

/* Section header pattern */
.section-hd { margin-bottom: 3.5rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); }

/* ============================================================
   HOME — HERO
============================================================ */
.hero {
    position: relative; height: 100vh; min-height: 680px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        140deg,
        rgba(8,8,8,0.88) 0%,
        rgba(26,42,74,0.72) 45%,
        rgba(8,8,8,0.55) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 860px; padding: 0 2rem;
}
.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.38em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.6rem;
    opacity: 0; animation: riseUp 1.3s ease 0.4s forwards;
}
.hero h1 {
    font-size: clamp(3rem, 7.5vw, 6.8rem);
    font-weight: 800; color: var(--cream); line-height: 1.02;
    margin-bottom: 1.8rem;
    opacity: 0; animation: riseUp 1.3s ease 0.7s forwards;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-rule {
    width: 70px; height: 1px; background: var(--gold);
    margin: 0 auto 2rem;
    opacity: 0; animation: riseUp 1.3s ease 0.95s forwards;
}
.hero-cta-wrap {
    opacity: 0; animation: riseUp 1.3s ease 1.35s forwards;
}
.hero-scroll {
    position: absolute; bottom: 2.2rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    animation: scrollPulse 2.2s ease infinite;
}
.hero-scroll span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.62rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: rgba(245,240,232,0.4);
}
.hero-scroll-arrow {
    width: 16px; height: 16px;
    border-right: 1px solid rgba(245,240,232,0.3);
    border-bottom: 1px solid rgba(245,240,232,0.3);
    transform: rotate(45deg); margin-top: -8px;
}

@keyframes riseUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%      { transform: translateX(-50%) translateY(7px); opacity: 1; }
}


/* ============================================================
   HOME — SERVICES PREVIEW
============================================================ */
.services-preview { padding: 7rem 0; background: var(--black); }

.preview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.08);
}
.preview-card {
    background: var(--gray-dark);
    border-bottom: 3px solid transparent;
    transition: background var(--t), border-color var(--t);
    overflow: hidden;
}
.preview-card:hover { background: #1e1e1e; border-bottom-color: var(--gold); }
.preview-img { aspect-ratio: 16/9; overflow: hidden; }
.preview-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.preview-card:hover .preview-img img { transform: scale(1.04); }
.preview-text { padding: 1.6rem 2rem; }
.preview-card h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 0.5rem; font-weight: 600; }
.preview-card p  { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

.view-all { text-align: center; margin-top: 2.8rem; }
.view-all a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding-bottom: 2px; transition: border-color var(--t);
}
.view-all a:hover { border-bottom-color: var(--gold); }

/* ============================================================
   HOME — TESTIMONIALS
============================================================ */
.gallery { padding: 0 0 7rem; background: var(--black); }

.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.08);
}
.testimonial-card {
    background: var(--gray-dark);
    padding: 2.5rem;
    display: flex; flex-direction: column; gap: 1.2rem;
    transition: background var(--t);
}
.testimonial-card:hover { background: #1e1e1e; }
.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 4rem; line-height: 1;
    color: var(--gold); opacity: 0.5;
    margin-bottom: -0.5rem;
}
.testimonial-text {
    font-size: 0.92rem; font-weight: 300;
    color: rgba(245,240,232,0.7);
    line-height: 1.75; flex: 1;
}
.testimonial-author { border-top: 1px solid rgba(201,168,76,0.15); padding-top: 1.2rem; }
.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; color: var(--cream);
}
.testimonial-location {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold);
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME — CTA BANNER
============================================================ */
.cta-banner {
    background: var(--navy); padding: 6.5rem 0;
    text-align: center; position: relative; overflow: hidden;
}
.cta-texture {
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 44px,
        rgba(201,168,76,0.025) 44px, rgba(201,168,76,0.025) 88px
    );
}
.cta-inner { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--cream); margin-bottom: 0.6rem; }
.cta-banner h2 em { color: var(--gold); font-style: normal; }
.cta-banner p { color: rgba(245,240,232,0.55); font-size: 0.95rem; font-weight: 300; margin-bottom: 2.5rem; }

/* ============================================================
   SERVICES PAGE
============================================================ */
.services-full { padding: 5rem 0 7rem; background: var(--black); }

.full-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 2px; background: rgba(201,168,76,0.06);
}
.svc-card {
    background: var(--gray-dark);
    border-left: 3px solid var(--gold);
    overflow: hidden;
    transition: background var(--t);
}
.svc-card:hover { background: #1c1c1c; }
.svc-img { aspect-ratio: 16/9; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 1.8rem 2rem 2rem 1.8rem; }
.svc-body h3 { font-size: 1.2rem; color: var(--cream); margin-bottom: 0.6rem; }
.svc-body p  { font-size: 0.88rem; color: rgba(245,240,232,0.6); line-height: 1.72; }

.svc-card-wide {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 2fr 3fr;
}
.svc-card-wide .svc-img { aspect-ratio: unset; min-height: 220px; }
.svc-card-wide .svc-body { display: flex; flex-direction: column; justify-content: center; }

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-section { padding: 5rem 0 7rem; background: var(--black); }

.contact-card {
    background: var(--navy);
    border: 1px solid rgba(201,168,76,0.2);
    max-width: 580px; margin: 0 auto 4rem;
    padding: 3.5rem; text-align: center; position: relative;
}
.contact-card::before {
    content: ''; position: absolute; top: 0;
    left: 2.5rem; right: 2.5rem; height: 2px;
    background: var(--gold);
}
.c-item      { margin-bottom: 2.2rem; }
.c-item:last-of-type { margin-bottom: 0; }
.c-icon      { font-size: 1.6rem; margin-bottom: 0.4rem; }
.c-lbl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.c-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem; color: var(--cream);
}
.c-val.small { font-size: 1.15rem; }
.c-val a { color: inherit; text-decoration: none; transition: color var(--t); }
.c-val a:hover { color: var(--gold); }
.c-divider { height: 1px; background: rgba(201,168,76,0.14); margin: 1.8rem 0; }
.c-response { font-size: 0.83rem; font-style: italic; color: rgba(245,240,232,0.4); }


.contact-form-cta {
    text-align: center; margin-top: 3rem;
    font-size: 0.88rem; color: rgba(245,240,232,0.45);
}
.contact-form-cta a {
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    transition: border-color var(--t);
}
.contact-form-cta a:hover { border-bottom-color: var(--gold); }

/* ============================================================
   QUOTE PAGE
============================================================ */
.quote-section { padding: 5rem 0 7rem; background: var(--black); }

.form-card {
    background: var(--gray-dark);
    border: 1px solid rgba(201,168,76,0.14);
    max-width: 660px; margin: 0 auto;
    padding: 3.5rem; position: relative;
}
.form-card::before {
    content: ''; position: absolute; top: 0;
    left: 2.5rem; right: 2.5rem;
    height: 2px; background: var(--gold);
}
.form-intro {
    font-size: 0.88rem; color: rgba(245,240,232,0.45);
    margin-bottom: 2.5rem; line-height: 1.6;
}

.f-group { margin-bottom: 1.6rem; }
.f-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(245,240,232,0.45); margin-bottom: 0.55rem;
}
.f-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.18);
    color: var(--cream);
    font-family: 'Barlow', sans-serif; font-size: 0.94rem;
    padding: 0.88rem 1rem;
    outline: none; appearance: none; border-radius: 0;
    transition: border-color var(--t), background var(--t);
}
.f-input:focus {
    border-color: var(--gold);
    background: rgba(201,168,76,0.04);
}
.f-input::placeholder { color: rgba(245,240,232,0.2); }
.f-input option { background: #1a1a1a; color: var(--cream); }

select.f-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M0.5 0.5L5.5 5.5L10.5 0.5' stroke='%23c9a84c' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.6rem; cursor: pointer;
}
textarea.f-input { resize: vertical; min-height: 110px; }

.btn-submit {
    width: 100%; background: var(--gold); color: var(--black);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.88rem; font-weight: 700;
    letter-spacing: 0.28em; text-transform: uppercase;
    padding: 1.1rem 2rem; border: none; cursor: pointer;
    margin-top: 0.5rem; transition: all var(--t);
}
.btn-submit:hover {
    background: var(--gold-light); transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(201,168,76,0.22);
}

.success-msg {
    display: none; text-align: center; padding: 3rem 2rem;
    border: 1px solid rgba(201,168,76,0.25);
    background: rgba(201,168,76,0.06);
}
.success-msg.show { display: block; animation: riseUp 0.4s ease; }
.success-check { font-size: 3rem; margin-bottom: 1rem; }
.success-msg h3 { color: var(--gold); font-size: 1.6rem; margin-bottom: 0.6rem; }
.success-msg p  { color: rgba(245,240,232,0.55); font-size: 0.9rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .nav-links  { display: none; }
    .hamburger  { display: flex; }
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
    .svc-card-wide { grid-template-columns: 1fr; }
    .svc-card-wide .svc-img { min-height: 200px; }
}

@media (max-width: 640px) {
    .preview-grid { grid-template-columns: 1fr; }
    .full-grid    { grid-template-columns: 1fr; }
    .svc-card-wide { grid-column: auto; }
    .hero h1      { font-size: 2.6rem; }
    .contact-card, .form-card { padding: 2rem 1.5rem; }
    .c-val        { font-size: 1.2rem; }
    .c-val.small  { font-size: 1rem; }
    .hero-bg img { object-position: center 100%; }
}
