/* ============================================================
   Competition Pools NJ — theme.css
   Enqueued by functions.php
   ============================================================ */

/* ── RESET & CUSTOM PROPERTIES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #0B1F3A;
    --navy-mid:   #163356;
    --pool:       #00A8CC;
    --pool-light: #4ECFE8;
    --sand:       #F5EFE0;
    --sand-mid:   #E8DCC8;
    --white:      #FFFFFF;
    --text-dark:  #0B1F3A;
    --text-mid:   #4A6070;
    --text-light: #7A95A8;
    --accent:     #F4A020;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}


/* ── NAV ── */
.cpnj-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 3rem;
    background: rgba(11,31,58,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: padding 0.3s;
}

.cpnj-nav.scrolled { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1.1;
    flex-shrink: 0;
}
.nav-logo span { color: var(--pool-light); }

.nav-links {
    display: flex; gap: 2rem; list-style: none;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none; font-size: 0.9rem;
    font-weight: 400; letter-spacing: 0.02em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--pool) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: 40px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--pool-light) !important; color: var(--navy) !important; }

.nav-phone {
    color: var(--accent) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
}
.nav-hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--navy);
    z-index: 190;
    padding: 5rem 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.mobile-drawer a {
    color: rgba(255,255,255,0.8); font-size: 1.1rem;
    text-decoration: none; display: block;
}
.mobile-drawer .drawer-cta {
    display: inline-block;
    background: var(--pool); color: var(--white) !important;
    padding: 0.7rem 1.8rem; border-radius: 40px;
    font-weight: 500; margin-top: 0.5rem;
}


/* ── HERO ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #0e3a5a 100%);
    display: flex; align-items: center;
    padding: 8rem 3rem 5rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,168,204,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-waves {
    position: absolute; right: -40px; top: 50%;
    transform: translateY(-50%);
    width: 55%; opacity: 0.08;
    pointer-events: none;
}

.hero-content { position: relative; max-width: 600px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,168,204,0.15);
    border: 1px solid rgba(0,168,204,0.3);
    color: var(--pool-light);
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem; border-radius: 40px;
    margin-bottom: 1.8rem;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--pool-light);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700; color: var(--white);
    line-height: 1.1; letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--pool-light); font-style: normal; }

.hero > .hero-content > p {
    font-size: 1.15rem; color: rgba(255,255,255,0.65);
    font-weight: 300; line-height: 1.75;
    max-width: 480px; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--pool); color: var(--white);
    padding: 0.95rem 2rem; border-radius: 50px;
    font-weight: 500; font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 8px 30px rgba(0,168,204,0.35);
}
.btn-primary:hover { background: var(--pool-light); transform: translateY(-2px); color: var(--navy); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.95rem 2rem; border-radius: 50px;
    font-weight: 400; font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.07); }

.hero-stats {
    display: flex; gap: 3rem;
    margin-top: 4rem; padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700;
    color: var(--white); line-height: 1;
}
.stat-num span { color: var(--pool-light); }
.stat-label {
    font-size: 0.8rem; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 4px;
}


/* ── SHARED SECTION TYPOGRAPHY ── */
.section-label {
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.75rem; font-weight: 500;
    color: var(--pool); margin-bottom: 0.8rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--navy);
    line-height: 1.15; margin-bottom: 1rem;
}
.section-sub {
    color: var(--text-mid); font-size: 1rem;
    font-weight: 300; max-width: 520px; line-height: 1.7;
}


/* ── SERVICES ── */
.services {
    padding: 6rem 3rem;
    background: var(--sand);
}
.services-header {
    display: flex; justify-content: space-between;
    align-items: flex-end; gap: 2rem;
    margin-bottom: 3.5rem; flex-wrap: wrap;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border-radius: 16px; padding: 2.2rem;
    border: 1px solid var(--sand-mid);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none; display: block;
    color: inherit;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(11,31,58,0.1);
}
.service-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--pool), var(--pool-light));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; font-size: 1.4rem;
}
.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--navy); margin-bottom: 0.7rem;
}
.service-card p {
    font-size: 0.9rem; color: var(--text-mid); line-height: 1.65;
}
.service-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 1.3rem;
    color: var(--pool); font-size: 0.85rem; font-weight: 500;
}
.service-link::after { content: ' →'; }


/* ── WHY US ── */
.why {
    padding: 6rem 3rem;
    background: var(--navy);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.why-text .section-label { color: var(--pool-light); }
.why-text .section-title { color: var(--white); }
.why-text .section-sub { color: rgba(255,255,255,0.55); margin-bottom: 2.5rem; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,168,204,0.15); border: 1px solid var(--pool);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
    color: var(--pool-light); font-size: 0.75rem; font-weight: 700;
}
.why-item-text strong {
    display: block; color: var(--white); font-size: 0.95rem;
    font-weight: 500; margin-bottom: 2px;
}
.why-item-text span { color: rgba(255,255,255,0.45); font-size: 0.85rem; }

.why-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 1.8rem;
    transition: background 0.2s;
}
.why-card:hover { background: rgba(255,255,255,0.07); }
.why-card-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; font-weight: 700;
    color: var(--pool-light); line-height: 1; margin-bottom: 0.4rem;
}
.why-card-label {
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 0.07em;
}


/* ── CONTACT ── */
.contact {
    padding: 6rem 3rem;
    background: var(--sand);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.contact-info .section-title { margin-bottom: 1.2rem; }
.contact-info .section-sub   { margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.3rem;
    background: var(--white); border-radius: 12px;
    border: 1px solid var(--sand-mid);
    text-decoration: none; color: inherit;
    transition: box-shadow 0.2s;
}
.contact-item:hover { box-shadow: 0 4px 20px rgba(11,31,58,0.08); }
.contact-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--pool), var(--pool-light));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem;
}
.contact-item-label {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 2px;
}
.contact-item-val { font-size: 1rem; font-weight: 500; color: var(--navy); }

/* Quote form */
.contact-form {
    background: var(--white); border-radius: 20px; padding: 2.5rem;
    border: 1px solid var(--sand-mid);
    box-shadow: 0 8px 40px rgba(11,31,58,0.06);
}
.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--navy); margin-bottom: 0.4rem;
}
.contact-form > p {
    font-size: 0.85rem; color: var(--text-mid); margin-bottom: 1.8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

label {
    font-size: 0.8rem; font-weight: 500;
    color: var(--text-dark); text-transform: uppercase;
    letter-spacing: 0.05em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--sand-mid); border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s; outline: none;
    width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--pool); }
textarea { resize: vertical; min-height: 90px; }

.form-status {
    font-size: 0.9rem; padding: 0.6rem 0;
    min-height: 1.4rem;
}
.form-status.success { color: #1a7a47; }
.form-status.error   { color: #c0392b; }

.form-submit {
    width: 100%; padding: 1rem;
    background: var(--navy); color: var(--white);
    border: none; border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
    margin-top: 0.5rem;
}
.form-submit:hover   { background: var(--pool); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }


/* ── FOOTER ── */
.cpnj-footer {
    background: var(--navy); padding: 3rem;
    display: flex; justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 1.5rem; flex-wrap: wrap;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--white); text-decoration: none;
}
.footer-logo span { color: var(--pool-light); }
.footer-links { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,0.4); font-size: 0.85rem;
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.8rem; }


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cpnj-nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .hero { padding: 7rem 1.5rem 4rem; }
    .hero-stats { gap: 1.5rem; }
    .services { padding: 4rem 1.5rem; }

    .why { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2.5rem; }
    .why-visual { grid-template-columns: 1fr 1fr; }

    .contact { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }

    .cpnj-footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .why-visual { grid-template-columns: 1fr 1fr; }
}
