/* ============================================================
   Jellis Industries — styles.css
   ============================================================ */

:root {
    --navy:        #1d3557;
    --navy-dark:   #162842;
    --blue:        #457b9d;
    --blue-light:  #a8dadc;
    --bg:          #edf1f7;
    --surface:     #ffffff;
    --text:        #1a2b3c;
    --muted:       #6b7c93;
    --border:      #d2dce9;
    --radius:      14px;
    --shadow:      0 4px 24px rgba(29, 53, 87, 0.09);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---- Background ambient blobs ---- */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}

.blob-1 {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, var(--blue-light), var(--blue));
    top: -220px;
    right: -160px;
}

.blob-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--blue), var(--navy));
    bottom: -120px;
    left: -160px;
}

/* ---- Page layout ---- */
.page-wrap {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Header / Logo ---- */
.site-header {
    padding: 1rem 0 2.5rem;
}

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

.logo-mark {
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.logo-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 0.15rem;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- Hero ---- */
.hero {
    padding: 2rem 0 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-graphic {
    flex-shrink: 0;
    width: 200px;
    opacity: 0.88;
}

.hero-graphic svg {
    width: 100%;
    height: auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(69, 123, 157, 0.1);
    border: 1px solid rgba(69, 123, 157, 0.22);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--navy);
    letter-spacing: -0.025em;
    margin-bottom: 1.4rem;
}

.hero h1 em {
    font-style: italic;
    font-weight: 600;
    color: var(--blue);
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 580px;
    font-weight: 300;
}

/* ---- Contact card ---- */
.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.75rem;
    border: 1px solid var(--border);
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}

.form-intro {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.btn-icon {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.15s ease;
}

/* ---- Form ---- */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.field-row .field {
    margin-bottom: 0;
}

label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: #aab5c4;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.13);
    background: #ffffff;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    margin-top: 0.25rem;
}

.btn-submit:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.btn-submit:hover:not(:disabled) .btn-icon {
    transform: translateX(3px);
}

/* ---- Form success state ---- */
.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 52px;
    height: 52px;
    background: rgba(69, 123, 157, 0.1);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 1.5px solid rgba(69, 123, 157, 0.2);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.form-success p {
    color: var(--muted);
    font-size: 0.88rem;
}

/* ---- Footer ---- */
.site-footer {
    margin-top: auto;
    padding: 2.5rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.site-footer a {
    color: var(--blue);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-social {
    margin-top: 0.4rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .hero {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .hero-graphic {
        width: 140px;
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }
}
