/* ================================
   CSS VARIABLES (Design Tokens)
================================ */
:root {
    /* ---- Colors ---- */
    --color-bg-dark: #0f0f1e;
    --color-bg-dark-alt: #1a1a2e;
    --color-bg-dark-alt-2: #16213e;
    --color-bg-light: #f8f9fa;

    --color-text-main: #333;
    --color-text-light: #ffffff;
    --color-text-muted: #e0e0e0;

    --color-accent: #f39c12;
    --color-accent-hover: rgba(0, 0, 0, 0.45);

    --color-border-light: #16213e;
    --color-border-accent-soft: rgba(243, 156, 18, 0.6);

    --color-google: darkblue;
    --color-google-hover: (0, 0, 0, 0.35);

    --color-overlay-dark: rgba(0, 0, 0, 0.55);
    --color-card-bg-dark: rgba(15, 15, 30, 0.75);

    /* ---- Typography ---- */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-display: 'Cinzel', serif;

    --font-size-base: 1rem;
    --font-size-small: 0.85rem;
    --font-size-h1: 3rem;
    --font-size-h2: 2.5rem;
    --font-size-hero-sub: 1.6rem;

    --letter-spacing-wide: 0.08em;

    /* ---- Spacing ---- */
    --container-width: 1200px;
    --section-padding: 4rem 2rem;
    --nav-padding: 1rem 2rem;

    /* ---- UI ---- */
    --radius-sm: 5px;
    --radius-md: 8px;
    --transition-fast: 0.3s;
}

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-main);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

section {
    padding: var(--section-padding);
}

/* ---------- Header ---------- */
header {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--nav-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    letter-spacing: var(--letter-spacing-wide);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

nav a:hover {
    color: var(--color-accent);
}

/* ---------- Hero ---------- */

.hero {
    background-size: cover;
    background-image: url("images/clint-mckoy-2b7lB-nqkFw-unsplash.jpg");
    background-position: 50% 150%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-text-light);
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-h1);
    font-weight: 300;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: 1rem;
}

.main-title {
    line-height: 1.1;
    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;   
}

.main-title .subtitle {
  display: block;         
  font-size: 1rem;
  margin-top: 1rem;     
  font-weight: normal;
}

.license-line {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;
}

.bonded-line {
    color: var(--color-accent);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;
}

.hero-subheading {
    font-size: var(--font-size-hero-sub);
    margin: 0.5rem 0 1.5rem;
    color: var(--color-text-muted);
    font-style: italic;

    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;
}

.phone-number {
    font-size: 1.2rem;
    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* ---------- Buttons ---------- */
.cta-button {
    background: var(--color-accent);
    color: var(--color-text-light);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition-fast);
    border: 0.5px solid white;
    text-shadow: none;
}

.cta-button:hover {
    background: var(--color-accent-hover);
    font-weight: bolder;
    /* color: #f39c12; */
    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;
}

.google-btn {
    background: var(--color-google);
    color: var(--color-text-light);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition-fast);
    border: 0.5px solid white;
}

.google-btn2 {
    width: 15%;
    height: auto;
}

.google-btn:hover {
    background: var(--color-overlay-dark);
    /* border: 1px solid white; */
    font-weight: bolder;
}

.call-spacing {
    margin-top: 2rem;
}

.admin-trigger {
    cursor: default;
    user-select: none;
}

/* ---------- Services ---------- */
#services {
    background-image: url("images/aaron-lau-EOnlL3L3IgQ-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

#services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-overlay-dark);
    z-index: 0;
}

#services .container {
    position: relative;
    z-index: 1;
}

#services h2 {
    color: var(--color-text-light);
}

.services-intro {
    margin-bottom: 2rem;
    font-size: larger;
    color: var(--color-text-muted);
}

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

.service-card {
    padding: 2rem;
    background: var(--color-card-bg-dark);
    border: 2px solid var(--color-border-accent-soft);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--color-text-light);
    backdrop-filter: blur(4px);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.03em;
}

/* ---- Gallery -----*/

#gallery {
    background: lightgray;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 350px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    transition: box-shadow 0.6s ease;
    cursor: pointer;
}

.gallery-item figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-bg-dark-alt-2);
    font-weight: bold;
}

.gallery-item img:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Image Zoom Overlay ---------- */
/* ---------- Image Zoom Overlay ---------- */
#image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.35s ease;
    z-index: 1000;
}

#image-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#image-overlay img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(1.1);
    transition: transform 0.25s ease;
    border-radius: var(--radius-md);
}

#image-overlay.active img {
    transform: scale(1.12); /* restrained, classy */
}


/* ---------- service-area ---------- */
.service-area {
    background: var(--color-bg-dark-alt-2);
    color: whitesmoke;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.service-area-image {
    margin: 2rem auto;
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
    font-size: smaller;
    font-style: italic;
}

.service-area-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto; 
}



/* ---------- About ---------- */
.about {
    background: var(--color-bg-dark);
    color: whitesmoke;
}

/* ---------- Contact ---------- */

.contact {
    background-image: url("images/rodion-kutsaiev-xkEtD4Stn0I-unsplash.jpg");
    background-size: cover;
    background-position: 50% 85%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-text-light);

    padding: 3rem 2rem 2rem;
    position: relative;

    text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.contact > * {
    position: relative;
    z-index: 1;
}

.contact h2 {
    color: var(--color-text-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-note {
    font-style: italic;
}

.contact-form {
    margin-top: 2rem;
    max-width: 500px;
}

.honeypot {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: var(--color-bg-light);
    opacity: 0.65;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    opacity: 0.85;
}

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

/* ---------- Footer ---------- */
footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: var(--font-size-small);
    }

    .logo-text {
        display: none;
    }

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

    .license-line {
        font-size: 1rem;
    }

    .bonded-line {
        font-size: 1.1rem;
        text-shadow:
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px  2px 0 #000,
            2px  2px 0 #000;
    }
    
    .service-area-image {
    margin: 1.5rem auto;
    }    
}

@media (max-width: 900px) {
    /* background-attachment: fixed doesn't work on mobile Safari
       and causes the zoomed-in look — switch to scroll */
    .hero,
    #services,
    .contact {
        background-attachment: scroll;
        background-size: cover;          /* keep cover so it fills the container */
        background-position: center;     /* re-center so nothing gets weirdly cropped */
    }
}