/* =========================================================
   CANOPY & CROWN -- Design Tokens
   ========================================================= */
:root {
    /* Color */
    --bg-dark: #0f1210;
    --bg-card: rgba(20, 24, 21, 0.55);
    --bg-card-solid: #171b18;
    --text-light: #f5f3ef;
    --text-muted: #b8beb6;
    --border-glass: rgba(255, 255, 255, 0.1);
    --accent: #f97316;
    --accent-hover: #fb8a3d;
    --accent-glow: rgba(249, 115, 22, 0.35);
    --white: #ffffff;

    /* Type */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;

    /* Layout */
    --nav-height: 4.5rem;
    --max-width: 75rem;
}

/* =========================================================
   Reduced Motion -- respected site-wide, before anything else
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(10, 12, 10, 0.55), rgba(10, 12, 10, 0.75)),
        url('../images/background.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

section { padding: 5rem 1.5rem; }

.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); }

.skip-link {
    position: absolute;
    top: -3rem;
    left: 0.5rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

/* Visible keyboard focus everywhere -- border/color shift plus a glow ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
    border-radius: var(--radius-sm);
}

/* Icons -- white by default, not the accent color (accent stays reserved for CTAs) */
i[class^="ti-"], i[class*=" ti-"] { color: var(--white); }

/* =========================================================
   Header / Nav
   ========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

.navbar {
    position: relative;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--nav-height);
    padding: 0 1.5rem;
    background: rgba(12, 15, 13, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-call {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-call:hover { border-color: var(--accent); background: rgba(249, 115, 22, 0.08); }

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    position: relative;
}
.hamburger span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--white);
    border-radius: var(--radius-sm);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 150;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 1.75rem; }
.mobile-nav a { font-family: var(--font-head); font-size: 1.5rem; }
.mobile-nav a:hover { color: var(--accent); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
}
.hero-content { max-width: 42rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 24px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text-light); border: 1px solid var(--border-glass); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.btn-large { font-size: 1.05rem; padding: 1.1rem 2.25rem; }

/* =========================================================
   Trust Bar
   ========================================================= */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.trust-item i { font-size: 1.2rem; }

/* =========================================================
   Services
   ========================================================= */
.services-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.service-card i { font-size: 1.75rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    background: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover, .gallery-item:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
}
.gallery-item img { transition: transform 0.4s ease; width: 100%; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* =========================================================
   Expertise (staggered fade-up)
   ========================================================= */
.expertise-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.expertise-item { text-align: center; }
.expertise-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-glass);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.expertise-item:hover img { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.expertise-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.expertise-item p { color: var(--text-muted); font-size: 0.92rem; max-width: 22rem; margin: 0 auto; }

/* Stagger the 3 expertise photos as they enter */
.expertise-item:nth-child(1) { transition-delay: 0s; }
.expertise-item:nth-child(2) { transition-delay: 0.15s; }
.expertise-item:nth-child(3) { transition-delay: 0.3s; }

/* =========================================================
   Process
   ========================================================= */
.process-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.process-step {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.process-step:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.step-number {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.testimonial-card p { font-size: 1.05rem; margin-bottom: 1rem; font-family: var(--font-head); font-style: italic; }
.testimonial-card cite { color: var(--text-muted); font-size: 0.88rem; font-style: normal; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 0.85rem; color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   Final CTA / Contact
   ========================================================= */
.contact-wrap {
    max-width: 30rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-wrap:hover, .contact-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
}
.contact-divider { display: flex; align-items: center; gap: 1rem; width: 100%; color: var(--text-muted); font-size: 0.85rem; }
.contact-divider::before, .contact-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-glass); }

.contact-form { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); }
.form-group label .req { color: var(--accent); margin-left: 0.15rem; }
.form-group label .optional-tag { color: var(--text-muted); opacity: 0.7; font-size: 0.78rem; }
.form-note { font-size: 0.78rem; color: var(--text-muted); }
.form-note .req { color: var(--accent); }
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.form-group textarea { resize: vertical; }
.form-feedback { font-size: 0.9rem; min-height: 1.2rem; }

/* Honeypot -- hidden accessibly, off-screen rather than display:none */
.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(8, 10, 9, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-glass);
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
    border: none;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
}
.lightbox::backdrop { background: rgba(5, 6, 5, 0.9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================
   Scroll-reveal (.fade-up)
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive -- rem-based breakpoints from the start
   ========================================================= */
@media (min-width: 48rem) {
    .btn-call.nav-call { display: inline-flex; }

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

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-grid { grid-template-columns: repeat(3, 1fr); }
    .process-grid { grid-template-columns: repeat(4, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
    .hero h1 { font-size: 4.25rem; }
    section { padding: 6rem 2rem; }
}

@media (max-width: 30rem) {
    .hero h1 { font-size: 2.25rem; }
    .btn-large { width: 100%; justify-content: center; }
}
