/* ─── Agency360 Landing Page Base CSS ─── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.a360-landing-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Reset WordPress admin bar spacing */
body.a360-landing-body.admin-bar {
    margin-top: 0 !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ─── Section Wrappers ─── */

.a360-landing-wrapper {
    width: 100%;
    min-height: 100vh;
}

.a360-section-wrap {
    width: 100%;
}

/* ─── Form Embed ─── */

.a360-form-embed {
    max-width: 600px;
    margin: 0 auto;
}

.a360-form-embed .fluentform {
    width: 100%;
}

/* ─── Draft Banner ─── */

.a360-draft-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #F59E0B;
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.a360-landing-draft .a360-landing-wrapper {
    padding-top: 34px;
}

/* ─── Responsive Typography ─── */

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p, li, td, th {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* ─── Responsive Container ─── */

.a360-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ─── Responsive Sections ─── */

section,
.a360-section-wrap > section {
    padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem);
}

/* ─── Responsive Grid ─── */

.a360-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* ─── Responsive Images ─── */

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ─── Responsive Forms ─── */

input, textarea, select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

button, .btn, [class*="btn"] {
    min-height: 44px;
    touch-action: manipulation;
}

/* ─── Responsive Table ─── */

table {
    width: 100%;
    border-collapse: collapse;
}

/* ─── Breakpoints (mobile-first) ─── */

@media (min-width: 576px) {
    .a360-container { padding: 0 1.5rem; }
    .a360-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .a360-container { padding: 0 2rem; }
}

@media (min-width: 992px) {
    .a360-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .a360-container { max-width: 1200px; }
}

/* ─── Mobile Overrides ─── */

@media (max-width: 768px) {
    html { font-size: 15px; }

    .a360-section-wrap [style*="display:flex"],
    .a360-section-wrap [style*="display: flex"] {
        flex-wrap: wrap;
    }

    .a360-section-wrap table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
}
