/* ==========================================================================
   Pool Covers Hub — ph-pco.css
   All rules scoped under .ph-pco-content
   ========================================================================== */

.ph-pco-content *, .ph-pco-content *::before, .ph-pco-content *::after { box-sizing: border-box; }

.ph-pco-content {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    color: #4b5563;
    line-height: 1.75;
    background: #fff;
}

.ph-pco-content h1, .ph-pco-content h2, .ph-pco-content h3, .ph-pco-content h4 {
    font-family: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    margin-top: 0;
}

.ph-pco-content h2 {
    font-size: clamp(1.85rem, 2.4vw, 2.3rem);
    line-height: 1.05;
    color: #1d439c;
    margin-bottom: 1.1rem;
}

.ph-pco-content h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    color: #333;
    margin-bottom: 0.75rem;
}

.ph-pco-content h4 {
    font-size: 1rem;
    color: #1d439c;
    margin-bottom: 0.3rem;
}

.ph-pco-content p { font-size: 1.05rem; line-height: 1.75; color: #4b5563; margin: 0 0 1rem; }
.ph-pco-content a { color: #1d439c; }
.ph-pco-content img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   CONTAINERS & SECTIONS
   ========================================================================== */

.ph-pco-content .ph-pco-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 24px;
}

.ph-pco-content .ph-pco-container--narrow {
    max-width: 800px;
}

.ph-pco-content .ph-pco-section {
    padding: 72px 0;
    background: #fff;
}

.ph-pco-content .ph-pco-section--alt {
    background: #f8f9fa;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.ph-pco-content .ph-pco-hero {
    padding: 0;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(8,19,44,0.18) 0%, rgba(8,19,44,0.55) 100%),
        url("https://poolheating.com.au/wp-content/uploads/2024/05/AES-Web-Cover2.jpg")
        center / cover no-repeat;
}

.ph-pco-content .ph-pco-hero .ph-pco-container {
    padding-bottom: 4rem;
    padding-top: 3rem;
}

.ph-pco-content .ph-pco-hero h1 {
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.85;
    color: #feb415;
    margin-bottom: 1rem;
}

.ph-pco-content .ph-pco-hero__tagline {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 560px;
    margin-bottom: 0;
}

/* ==========================================================================
   WHY LIST
   ========================================================================== */

.ph-pco-content .ph-pco-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.ph-pco-content .ph-pco-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.05rem;
    color: #334155;
    background: transparent;
    box-shadow: none;
}

.ph-pco-content .ph-pco-list li:last-child { border-bottom: none; }

.ph-pco-content .ph-pco-list li i {
    color: #1d439c;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.ph-pco-content .ph-pco-link {
    color: #1d439c;
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================================
   TWO-COLUMN ROWS
   ========================================================================== */

.ph-pco-content .ph-pco-row {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.ph-pco-content .ph-pco-col { flex: 1; }

.ph-pco-content .ph-pco-col--img img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* ==========================================================================
   BUTTON
   ========================================================================== */

.ph-pco-content .ph-pco-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7em 1.8em;
    border: 2px solid #feb415;
    border-radius: 999px;
    background: #1d439c;
    color: #fff;
    font-family: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5rem;
}

.ph-pco-content .ph-pco-btn:hover {
    background: #feb415;
    color: #0f172a;
    border-color: #1d439c;
    text-decoration: none;
}

.ph-pco-content .ph-pco-btn--center {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

/* ==========================================================================
   SWIM NOW. PAY LATER
   ========================================================================== */

.ph-pco-content .ph-pco-swim-section {
    background: #f2f4f8;
    text-align: center;
}

.ph-pco-content .ph-pco-swim-section h2 {
    color: #1d439c;
    font-size: clamp(2rem, 3vw, 2.8rem);
    text-align: center;
    margin-bottom: 0.2rem;
    text-transform: none;
    font-family: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
}

.ph-pco-content .ph-pco-swim-section h2 b { color: #faaa00; }

.ph-pco-content .ph-pco-divider {
    height: 2px;
    background: #d0d5df;
    width: 120px;
    margin: 0.9rem auto;
}

.ph-pco-content .ph-pco-swim-section h3 {
    font-family: "Lato", sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.ph-pco-content .ph-pco-swim-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.ph-pco-content .ph-pco-swim-card {
    flex: 0 0 calc(25% - 14px);
    max-width: calc(25% - 14px);
    background: #fff;
    padding: 1.4rem 1.25rem;
    text-align: left;
    border-top: 3px solid #feb415;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ph-pco-content .ph-pco-swim-card h4 {
    font-size: 1rem;
    color: #1d439c;
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.ph-pco-content .ph-pco-swim-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

.ph-pco-content .ph-pco-handypay-logo {
    max-width: 180px;
    height: auto;
    margin: 2rem auto 1rem;
}

.ph-pco-content .ph-pco-swim-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.ph-pco-content .ph-pco-swim-links a {
    color: #1d439c;
    font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */

.ph-pco-content .ph-pco-section--form {
    background: #f8f9fa;
    text-align: center;
}

.ph-pco-content .ph-pco-form-title {
    text-align: center;
    margin-bottom: 0.4rem;
}

.ph-pco-content .ph-pco-form-sub {
    color: #64748b;
    margin-bottom: 2rem;
    text-align: center;
}

.ph-pco-content .ph-pco-section--form .gform_wrapper { text-align: left; }

.ph-pco-content .ph-pco-section--form input[type="text"],
.ph-pco-content .ph-pco-section--form input[type="email"],
.ph-pco-content .ph-pco-section--form input[type="tel"],
.ph-pco-content .ph-pco-section--form select,
.ph-pco-content .ph-pco-section--form textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ph-pco-content .ph-pco-section--form input:focus,
.ph-pco-content .ph-pco-section--form textarea:focus {
    border-color: #1d439c;
    box-shadow: 0 0 0 3px rgba(29,67,156,0.1);
}

.ph-pco-content .ph-pco-section--form input[type="submit"],
.ph-pco-content .ph-pco-section--form .gform_button {
    padding: 0.7rem 2.2rem;
    background: #1d439c;
    color: #fff;
    border: 2px solid #feb415;
    border-radius: 999px;
    font-family: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ph-pco-content .ph-pco-section--form input[type="submit"]:hover,
.ph-pco-content .ph-pco-section--form .gform_button:hover {
    background: #feb415;
    color: #0f172a;
    border-color: #1d439c;
}

.ph-pco-content .ph-pco-section--form .gfield_label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ph-pco-content .ph-pco-section--form .gfield_validation_message,
.ph-pco-content .ph-pco-section--form .validation_message {
    color: #ef4444;
    font-size: 0.8rem;
    padding: 0;
    background: none;
    border: none;
}

/* ==========================================================================
   RESPONSIVE ≤ 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    .ph-pco-content .ph-pco-row { flex-direction: column; gap: 2rem; }
    .ph-pco-content .ph-pco-col--img img { margin: 0 auto; }
    .ph-pco-content .ph-pco-swim-card { flex: 0 0 calc(50% - 9px); max-width: calc(50% - 9px); }
}

/* ==========================================================================
   RESPONSIVE ≤ 767px
   ========================================================================== */

@media (max-width: 767px) {
    .ph-pco-content .ph-pco-section { padding: 48px 0; }
    .ph-pco-content .ph-pco-hero { min-height: 45vh; }
    .ph-pco-content .ph-pco-hero h1 { font-size: clamp(2.5rem, 8vw, 3.2rem); }
    .ph-pco-content .ph-pco-swim-card { flex: 0 0 100%; max-width: 100%; }
}
