/* ================================================================
   Alfuth Enterprises - Site Stylesheet
   Design: Refined dark professional, blue accent to complement logo
   Fonts:  Playfair Display (headings) + DM Sans (body)
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
    --bg:          #0f0f0f;
    --bg-raised:   #161616;
    --bg-card:     #1c1c1c;
    --border:      #2a2a2a;
    --blue:        #2f80ed;
    --blue-light:  #56a0f5;
    --text:        #e8e4dc;
    --text-muted:  #8a8680;
    --white:       #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --radius:       4px;
    --transition:   180ms ease;
    --max-w:        1140px;
    --section-gap:  7rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* Component display rules (e.g. .accent-card's flex) would otherwise override the hidden attribute */
[hidden] { display: none !important; }
a   { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

em { font-style: italic; color: var(--blue-light); }

p { margin-bottom: 1.2rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ────────────────────────────────────────────── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0.6rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(47,128,237,0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue-light);
}

.btn-full { width: 100%; text-align: center; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact form bot protection: the honeypot sits off-screen (bots skip display:none
   fields, so it's positioned away instead), and the Turnstile widget gets breathing room */
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-turnstile { margin-bottom: 1.2rem; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo image - sized to fit neatly in the header.
   The PNG has a white background so we clip it to just the mark. */
.logo { display: flex; align-items: center; }

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    text-decoration: none;
}
.nav-link:hover { color: var(--white); }

.nav-cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 500;
}
.nav-cta:hover {
    background: var(--blue-light);
    color: var(--white) !important;
}

/* Mobile nav toggle (CSS-only, no JS required) */
.nav-check  { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}
.mobile-nav .nav-link {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
}
.mobile-nav .nav-link:last-child { border-bottom: none; }

@media (max-width: 720px) {
    .main-nav   { display: none; }
    .nav-toggle { display: flex; }
    .site-header { position: relative; }
    .nav-check:checked ~ .mobile-nav { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 70% 50%, rgba(47,128,237,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(47,128,237,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.18;
}

.hero-content {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    max-width: 680px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1.2rem;
}

.hero-headline { margin-bottom: 1.6rem; }

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Page hero (inner pages) ───────────────────────────────────── */
.page-hero {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
}

.page-hero .hero-eyebrow { margin-bottom: 0.8rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ── Services Section ──────────────────────────────────────────── */
.services-section {
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 2.4rem 2rem;
    transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.service-icon {
    color: var(--blue-light);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.service-card h3 { margin-bottom: 0.8rem; font-size: 1.1rem; }
.service-card p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ── CTA Band ──────────────────────────────────────────────────── */
.cta-band {
    padding: var(--section-gap) 0;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
}

.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: 0.6rem; }
.cta-inner p  { color: var(--text-muted); margin-bottom: 2rem; }

/* ── About Page ────────────────────────────────────────────────── */
.about-intro {
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--border);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
}

.about-text h2 { margin-bottom: 1.2rem; }
.about-text p  { color: var(--text-muted); }

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.about-photo {
    width: 220px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.about-accent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 1.6rem 2rem;
    text-align: center;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.accent-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blue-light);
}

.accent-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── What We Offer Section ─────────────────────────────────────── */
.offerings-section {
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--border);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.offering-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    transition: border-color var(--transition), transform var(--transition);
}

.offering-card:hover {
    border-left-color: var(--blue-light);
    transform: translateY(-2px);
}

.offering-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.offering-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0;
    line-height: 1.75;
}

/* ── Values Section ────────────────────────────────────────────── */
.values-section {
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    padding: 1.6rem 0;
    border-top: 2px solid var(--border);
    transition: border-color var(--transition);
}
.value-item:hover { border-top-color: var(--blue); }
.value-item h3 { margin-bottom: 0.7rem; font-size: 1rem; letter-spacing: 0.02em; }
.value-item p  { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

@media (max-width: 760px) {
    .about-intro-grid  { grid-template-columns: 1fr; }
    .about-photo       { width: 100%; max-width: 280px; margin: 0 auto; }
    .about-accent      { flex-direction: row; }
    .accent-card       { flex: 1; }
}

/* ── Contact Page ──────────────────────────────────────────────── */
.contact-section { padding: var(--section-gap) 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2    { margin-bottom: 1rem; font-size: 1.6rem; }
.contact-info > p   { color: var(--text-muted); margin-bottom: 2rem; }

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-light);
    font-weight: 500;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

label {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.required { color: var(--blue-light); }
.optional  { color: var(--text-muted); font-size: 0.75rem; text-transform: none; letter-spacing: 0; }

.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47,128,237,0.15);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-error-banner {
    background: rgba(224,112,112,0.12);
    border: 1px solid rgba(224,112,112,0.3);
    border-radius: var(--radius);
    color: #e07070;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

.form-error-banner a { color: #e07070; text-decoration: underline; }

.validation-list { margin: 0; padding-left: 1.2rem; }
.validation-list li + li { margin-top: 0.3rem; }

.form-success {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
}

.success-icon {
    width: 52px;
    height: 52px;
    background: rgba(47,128,237,0.12);
    border: 1px solid var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--blue-light);
    margin: 0 auto 1.2rem;
}

.form-success h3 { margin-bottom: 0.5rem; }
.form-success p  { color: var(--text-muted); }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-row     { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background: var(--bg-raised);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.footer-nav { display: flex; gap: 1.8rem; }
.footer-nav a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--blue-light); }

/* ── 404 ───────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 8rem 2rem; }
.not-found h1 { font-size: 6rem; color: var(--blue-light); margin-bottom: 0.5rem; }

/* ── Utilities ─────────────────────────────────────────────────── */
.page-content { min-height: 70vh; }
