/* ============================================
   CORNERPIN - MOVING TO ITHACA LANDING PAGE
   Based on home-valuation template
   ============================================ */

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

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5077;
    --primary-dark: #0f1d30;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-dark: #b45309;
    --success: #059669;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */

header {
    background: #222;
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5077 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" fill-opacity="0.03" width="50" height="50"/><rect fill="%23ffffff" fill-opacity="0.03" width="50" height="50" x="50" y="50"/></svg>');
    background-attachment: fixed;
    opacity: 0.5;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.context-line {
    font-size: 15px;
    color: var(--accent-light);
    margin-bottom: var(--space-md);
    font-weight: 500;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--bg-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.7;
}

/* ============================================
   MAIN SECTION - TWO COLUMN
   ============================================ */

.main-section {
    background: var(--bg-white);
    padding: var(--space-3xl) 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Left column: Form */
.form-col h2 {
    font-size: 30px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

button[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: var(--shadow);
    margin-top: var(--space-xs);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Form disclosure */
.form-disclosure {
    font-size: 12px;
    color: var(--text-light);
    margin-top: var(--space-sm);
    text-align: center;
    line-height: 1.5;
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-badges strong {
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   RIGHT COLUMN: CALL OPTION + GUIDE
   ============================================ */

.call-card {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.call-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.call-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.calendly-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.calendly-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.call-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.call-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.call-note a:hover {
    text-decoration: underline;
}

/* Guide card */
.guide-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.guide-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.guide-info h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.guide-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   SUCCESS STATE
   ============================================ */

.success-message {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto var(--space-lg);
}

.success-message h2 {
    font-size: 28px;
    text-align: center;
}

.success-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #222;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
    font-size: 14px;
}

.guarantee {
    max-width: 650px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    line-height: 1.7;
}

.guarantee strong {
    color: var(--accent-light);
}

.footer-logo {
    margin: var(--space-lg) 0;
}

.footer-logo img {
    opacity: 0.85;
}

.footer-contact {
    margin: var(--space-md) 0;
    font-weight: 600;
    color: var(--bg-white);
}

.footer-email {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-email a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-email a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-trademark {
    margin-top: var(--space-lg);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    .subheadline {
        font-size: 16px;
    }

    .hero {
        padding: var(--space-xl) 0;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .form-col h2 {
        font-size: 26px;
    }

    .trust-badges {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .guide-card {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 var(--space-md);
    }

    button[type="submit"] {
        font-size: 16px;
        padding: 14px 24px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}
