@import './variables.css';

@font-face {
    font-family: 'DOVENS';
    src: url('../fonts/DOVENSPersonalUse-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

/* Image Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    /* Default behavior, can be overridden */
}

/* Specific fix for hero images or banners if needed */
.hero img,
.section img {
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--amp-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--muted);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Mobile Typography & Spacing */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 3rem;
    }

    h1 {
        font-size: 2.25rem;
        /* Down from 3rem */
    }

    h2 {
        font-size: 1.75rem;
        /* Down from 2.25rem */
    }

    h3 {
        font-size: 1.35rem;
        /* Down from 1.5rem */
    }

    .container {
        padding: 0 20px;
        /* Standard mobile padding */
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-height: 44px;
    /* Touch target size */
    touch-action: manipulation;
}

.btn-primary {
    background-color: var(--amp-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--amp-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--amp-lilac);
    color: var(--amp-primary);
}

.btn-secondary:hover {
    background-color: var(--surface);
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-ampinity {
    font-family: 'DOVENS', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.text-center {
    text-align: center;
}

/* Newsletter Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

/* Desktop: Row layout if space permits */
@media (min-width: 769px) {
    .newsletter-form {
        flex-direction: row;
        align-items: center;
    }

    .newsletter-btn {
        width: auto;
        white-space: nowrap;
    }
}

.newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D4C0CC;
    border-radius: 12px;
    background-color: #F7F7F9;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, background-color 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--amp-primary);
    background-color: white;
}

.newsletter-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--amp-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.newsletter-btn:hover {
    background-color: var(--amp-primary-dark, #3B2B7B);
    transform: translateY(-1px);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.newsletter-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    /* Hidden by default */
}

.newsletter-message.success {
    display: block;
    color: #00897B;
    /* Greenish */
}

.newsletter-message.error {
    display: block;
    color: #E53935;
    /* Reddish */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}