* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f97316;
    --text: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-small {
    padding: 60px 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-header h1,
.section-header h2 {
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-header h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-header p {
    color: var(--muted);
    font-size: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-2px);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--secondary);
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-weight: 900;
}

.logo-text {
    font-size: 19px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: #eff6ff;
}

.main-nav .nav-cta {
    background: var(--primary);
    color: var(--white);
    margin-left: 8px;
}

.main-nav .nav-cta:hover {
    color: var(--white);
    background: var(--primary-dark);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: var(--secondary);
    color: var(--white);
    border-radius: 12px;
    padding: 9px 13px;
    cursor: pointer;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.13), transparent 35%),
        var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 54px;
}

.hero-content h1 {
    color: var(--secondary);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    margin-bottom: 22px;
    letter-spacing: -0.04em;
}

.hero-content p {
    color: var(--muted);
    font-size: 19px;
    margin-bottom: 30px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 620px;
}

.hero-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.hero-stat strong {
    display: block;
    color: var(--secondary);
    font-size: 25px;
    line-height: 1;
    margin-bottom: 7px;
}

.hero-stat span {
    color: var(--muted);
    font-size: 14px;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    left: -24px;
    bottom: 35px;
    width: min(260px, 80%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.floating-card strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 6px;
}

.floating-card p {
    color: var(--muted);
    font-size: 14px;
}

/* CARDS */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-image {
    height: 220px;
    background: #dbeafe;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-body {
    padding: 24px;
}

.service-body h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 22px;
}

.service-body p {
    color: var(--muted);
    margin-bottom: 16px;
}

.service-price {
    display: block;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
}

.service-features {
    list-style: none;
    margin-bottom: 22px;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

/* CTA */

.cta-section {
    background: var(--secondary);
    color: var(--white);
    border-radius: 34px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.cta-section p {
    color: #cbd5e1;
    max-width: 680px;
}

/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
}

.about-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.about-content h1,
.about-content h2 {
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 18px;
}

.about-content h1 {
    font-size: clamp(34px, 5vw, 54px);
}

.about-content h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.about-content p {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 17px;
}

.value-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.value-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
}

.value-item h3 {
    color: var(--secondary);
    margin-bottom: 8px;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
}

.contact-item strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 6px;
}

.contact-item a,
.contact-item p {
    color: var(--muted);
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--secondary);
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* CHECKOUT */

.checkout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

.order-summary {
    background: var(--secondary);
    color: var(--white);
    border-radius: 24px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-row span {
    color: #cbd5e1;
}

.summary-row strong {
    color: var(--white);
    text-align: right;
}

.summary-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 22px;
    font-weight: 900;
}

.payment-note {
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

/* SUCCESS */

.success-box {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
}

.success-box h1 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 46px);
}

.success-box p {
    color: var(--muted);
    margin-bottom: 26px;
}

/* FOOTER */

.site-footer {
    background: #020617;
    color: var(--white);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 34px;
    padding: 70px 0;
}

.footer-brand p {
    color: #94a3b8;
    margin: 18px 0;
    max-width: 420px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-socials a,
.footer-column a,
.footer-whatsapp {
    color: #cbd5e1;
    transition: 0.2s ease;
}

.footer-socials a:hover,
.footer-column a:hover,
.footer-whatsapp:hover {
    color: var(--white);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    margin-bottom: 10px;
    color: var(--white);
}

.footer-column p {
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom-inner {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .mobile-menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 14px;
        box-shadow: var(--shadow);
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .checkout-grid,
    .cta-section {
        grid-template-columns: 1fr;
    }

    .hero-image-card img,
    .about-image img {
        height: 380px;
    }

    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 75px 0 64px;
    }

    .hero-stats,
    .grid-3,
    .grid-4,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-card img,
    .about-image img {
        height: 300px;
    }

    .floating-card {
        position: static;
        width: 100%;
        margin-top: 16px;
    }

    .cta-section {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .form-card,
    .order-summary,
    .success-box {
        padding: 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }
}

.logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-logo img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

/* ===============================
   MOBILE HORIZONTAL SCROLL FIX
================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    min-width: 0;
}

img,
video,
iframe {
    max-width: 100%;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

/* Prevent long words/text from forcing horizontal scroll */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
strong,
li,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Checkout product item fix */
.item {
    max-width: 100%;
}

.product-data {
    min-width: 0;
}

.product-name {
    overflow-wrap: break-word;
}

/* Order summary flex fix */
.summary-row,
.summary-total {
    flex-wrap: wrap;
}

.summary-row strong,
.summary-total strong {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Footer fix */
.footer-bottom-inner {
    max-width: 100%;
}

.footer-column a,
.footer-column p,
.footer-brand p {
    overflow-wrap: break-word;
}

/* Logo fix */
.logo img,
.footer-logo img {
    max-width: 180px;
    
}

#custom-amount {
    border: none;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .item {
        grid-template-columns: 1fr !important;
    }

    .item img {
        width: 100% !important;
        height: auto !important;
        max-height: 260px;
    }

    #total-amount {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #custom-amount {
        width: 100%;
        max-width: 100% !important;
        text-align: left !important;
    }

    .logo img {
        max-width: 150px;
        height: auto;
    }

    .footer-logo img {
        max-width: 170px;
        height: auto;
    }
}

/* ===============================
   FIXED HEADER + LOGO SIZE
================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

/* Match this with your header height */
.header-container {
    height: 78px;
    min-height: 78px;
}

/* Prevent fixed header from covering page content */
main {
    padding-top: 78px;
}

/* Logo height = 80% of header bar */
.site-header .logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.site-header .logo img {
    height: 100% !important;
    max-height: 100% !important;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Mobile adjustment */
@media (max-width: 640px) {
    .header-container {
        height: 68px;
        min-height: 68px;
    }

    main {
        padding-top: 68px;
    }

    .site-header .logo {
        height: 100%;
    }

    .site-header .logo img {
        height: 100% !important;
        max-height: 100% !important;
        max-width: 160px;
    }

    .main-nav {
        top: 76px;
    }
}

/* ===============================
   CHECKOUT DROPDOWN WIDTH FIX
================================ */

.checkout-page-section select,
.checkout-page-section input,
.checkout-page-section textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.checkout-page-section .form-group,
.checkout-page-section .form-card,
.checkout-page-section .form-grid {
    min-width: 0;
    max-width: 100%;
}

#service-selector,
#payment-method {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Prevent select text from forcing mobile width */
#service-selector option,
#payment-method option {
    max-width: 100%;
}

.checkout-select {
    max-width: 100%;
    width: 100%;
}

/* Mobile-specific checkout fix */
@media (max-width: 640px) {
    .checkout-page-section .form-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    #service-selector,
    #payment-method {
        font-size: 14px;
        padding-right: 36px;
    }

    .checkout-page-section .form-card {
        width: 100%;
        overflow: hidden;
    }
}

