/* =========================================
   3. HERO BANNER
   ========================================= */
.hero {
    background-color: var(--gradient-primary-end);
    background-image: url(assets/images/cubes.png);
    background-size: 120px 120px;
    /* shorter banner */
    height: clamp(160px, 22vw, 280px);
    position: relative;
    color: white;
    padding-top: 0;
    overflow: hidden;
}
 
.hero-curve {
    position: absolute;
    /* shallower curve for the shorter hero */
    bottom: clamp(-40px, -5vw, -60px);
    left: -10%;
    width: 120%;
    height: clamp(60px, 10vw, 120px);
    background: white;
    border-radius: 50% 50% 0 0;
}
 
.hero-title-area {
    position: absolute;
    /* true vertical centre of the shorter banner */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    text-align: center;
    width: 90%;
}
 
.hero-title-area h2 {
    font-size: clamp(2.4rem, 7vw, 3rem);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        0 2px 12px rgba(0,0,0,0.45),
        0 0 40px rgba(235,90,17,0.35);
}
 
/* =========================================
   4. FLOATING CONTACT CARD
   ========================================= */
.main-content {
    position: relative;
    z-index: 10;
    /* adjusted pull-up for the shorter hero */
    margin-top: clamp(-50px, -7vw, -90px);
    padding-bottom: clamp(40px, 8vw, 100px);
    flex: 1;           /* pushes footer to the bottom */
}
 
.form-card {
    background: white;
    width: min(800px, 100% - 2rem);
    margin-inline: auto;
    /* padding: fluid vertical / fluid horizontal */
    padding: clamp(24px, 5vw, 60px) clamp(20px, 5vw, 60px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}
 
.form-header h1 {
    color: var(--gradient-primary-end);
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 3vw, 2rem);
}
 
.form-header p {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: #888;
    margin-bottom: clamp(20px, 4vw, 40px);
    max-width: 500px;
}
 
/* ── Two-column form body ── */
.form-body {
    display: grid;
    /* fluid: side-by-side when ≥ 480px, stacked below */
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(20px, 4vw, 50px);
    align-items: start;
}
 
.input-group {
    margin-bottom: clamp(8px, 1.5vw, 15px);
}
 
/* inputs & textarea fill their column */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 15px) clamp(14px, 2.5vw, 20px);
    background: #eef2f8;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    transition: box-shadow 0.2s;
    outline: none;
}
 
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(120, 32, 110, 0.2);
}
 
textarea {
    border-radius: 15px;
    resize: vertical;
    min-height: clamp(90px, 14vw, 130px);
}
 
.btn-send {
    color: var(--text-bright);
    background: var(--secondary);
    text-decoration: none;
    border: 0;
    font-family: var(--font-heading);
    font-weight: bold;
    /* fluid padding */
    padding: clamp(8px, 1.5vw, 10px) clamp(14px, 2.5vw, 15px);
    border-radius: 25px;
    cursor: pointer;
    margin-top: clamp(6px, 1vw, 10px);
    box-shadow: 0 0 10px 3px #eb5a114f;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}
 
.btn-send:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark) !important;
    background: var(--text-bright);
}
 
/* ── Contact details aside ── */
.contact-details {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    line-height: 1.6;
}
 
.detail-item {
    margin-bottom: clamp(16px, 3vw, 30px);
}
 
/* =========================================
   5. FOOTER
   ========================================= */
.footer {
    background: linear-gradient(
        90deg,
        var(--gradient-primary-start),
        var(--gradient-primary-end)
    );
    color: white;
    padding: clamp(30px, 6vw, 60px) 0;
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
}
 
.footer-grid {
    display: grid;
    /* fluid: 3 cols on wide, 1 col on narrow */
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
    text-align: center;      /* centred on all sizes for consistency */
}
 
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
 
.logo-circle {
    width: clamp(28px, 3.5vw, 35px);
    height: clamp(28px, 3.5vw, 35px);
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    border: 2px solid #ff4081;
    flex-shrink: 0;
}
 
.brand-name {
    font-weight: 700;
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
}
 
.logo-area.light .logo-circle {
    background: rgba(255,255,255,0.3);
}
 
.disclaimer {
    color: white;
    display: block;
    margin-top: 10px;
    text-decoration: underline;
}
 
/* =========================================
   6. BREAKPOINTS
   =========================================
   Most scaling is handled by clamp() above.
   These breakpoints handle structural changes only.
   ========================================= */
 
/* ── Large tablets / small laptops (≤ 900px) ── */
@media (max-width: 900px) {
    /* Slightly compress nav link gap */
    nav.navigation {
        gap: 0.75em;
    }
}
 
/* ── Tablets (≤ 768px): switch to hamburger ── */
@media (max-width: 768px) {
    nav.navigation {
        display: none;          /* hide desktop nav */
    }
 
    #nav-expand {
        display: block;         /* show hamburger */
    }
}
 
/* ── Large phones (≤ 540px) ── */
@media (max-width: 540px) {
    /* form body already collapses via auto-fit, no extra needed */
 
    /* Hero curve: reduce overlap so card doesn't fly too high */
    .hero-curve {
        bottom: -40px;
    }
 
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
 
/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {
    header {
        padding: 0.7em 1em;
    }
 
    .form-card {
        width: calc(100% - 1rem);
    }
 
    .hero-title-area h2 {
        font-size: 1.25rem;
    }
}
 
/* ── Very wide screens (≥ 1600px) ── */
@media (min-width: 1600px) {
    html {
        font-size: 18px;        /* cap base size so things don't get huge */
    }
}
 
/* ── 4K / ultra-wide (≥ 2400px) ── */
@media (min-width: 2400px) {
    html {
        font-size: 20px;
    }
 
    .container {
        max-width: 1400px;
    }
 
    .form-card {
        max-width: 1000px;
    }
}
 
/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}