/* Magics Electrical - Crimson Pro + Inter | Centred hero over photo | Contact cards | Centred narrow footer */
:root {
    --primary: #c41018;
    --primary-deep: #94090d;
    --navy: #1a2744;
    --ink: #1a1a1a;
    --bg: #ffffff;
    --grey-light: #f8f8f9;
    --grey-mid: #e4e6e8;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Header: Clean professional split */
.header {
    background: #fff;
    border-bottom: 1px solid var(--grey-mid);
    padding: 16px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }
.header-right { display: flex; align-items: center; }
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}
.header-phone:hover { color: var(--primary); }
.header-phone svg { color: var(--primary); }

/* Hero: Centred text over atmospheric background */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.75);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 640px;
}
.hero-content h1 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }

/* Contact Section */
.contact-section {
    padding: 72px 0;
    background: var(--grey-light);
}
.contact-section h2 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    border: 1px solid var(--grey-mid);
}
.contact-card h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--navy);
}
.contact-card a {
    color: var(--primary);
    text-decoration: none;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin-bottom: 6px; color: #444; }

/* Form Section */
.form-section {
    padding: 72px 0;
}
.form-container { max-width: 560px; }
.form-section h2 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 28px;
}
.form-section form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-section input,
.form-section textarea {
    padding: 14px 16px;
    border: 1px solid var(--grey-mid);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}
.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer: Centred narrow */
.footer {
    background: var(--navy);
    padding: 48px 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
}
.footer-inner { max-width: 560px; }
.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.footer p { margin-bottom: 8px; font-size: 0.9rem; }
.footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer a:hover { color: #fff; }

/* Mobile */
@media (max-width: 768px) {
    .hero { min-height: 400px; }
    .contact-grid { grid-template-columns: 1fr; }
}
