:root {
    --navy: #192336;
    --gold: #D4AF37;
    --white: #ffffff;
    --light-navy: #22304a;
    --soft-border: rgba(255, 255, 255, 0.08);

    --max-width: 70rem;
    --space: 1.5rem;
    --radius: 0.4rem;
}

/* Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin-inline: auto;
}

/* ================= HEADER ================= */

.header {
    background: var(--navy);
    border-bottom: 1px solid var(--soft-border);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand img {
    width: 5rem;
    border-radius: 10px;
}

.brand span {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.05rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--gold);
}

.nav-cta {
    color: var(--gold);
    font-weight: 600;
}

/* ================= HERO ================= */

/* .hero {
    padding: 7rem 0;
    text-align: center;
    background-image: url(../img/RenovationBannerLoveThatRenovation.jpeg);
    background-repeat:inherit;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 40ch;
    margin: 0 auto 2rem auto;
    opacity: 0.85;
} */

.hero {
    position: relative;
    padding: 7rem 0;
    text-align: center;
    color: white;
    overflow: hidden;

    /* Slideshow setup */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroSlider 20s infinite;
}

/* Dark overlay for readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* adjust darkness */
    z-index: 1;
}

/* Keep content above overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Smooth background image transition */
@keyframes heroSlider {
    0%, 20% {
        background-image: url('../img/RenovationBannerLoveThatRenovation.jpeg');
    }
    25%, 45% {
        background-image: url('../img/RenovationBannerLoveThatRenovation1.jpeg');
    }
    50%, 70% {
        background-image: url('../img/RenovationBannerLoveThatRenovation2.jpeg');
    }
    75%, 95% {
        background-image: url('../img/RenovationBannerLoveThatRenovation3.jpeg');
    }
    100% {
        background-image: url('../img/RenovationBannerLoveThatRenovation.jpeg');
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 40ch;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.85;
}

/* Phone button layout */
.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-icon {
    transform-origin: center;
    stroke: var(--navy); /* or var(--gold) for emphasis */
    fill: none;
    animation: rotate-phone 1s linear infinite; /* continuous rotation */
}

/* Keyframes for continuous rotation */
@keyframes rotate-phone {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(135deg); }
}


/* ================= SECTIONS ================= */

.section {
    padding: 5rem 0;
    border-top: 1px solid var(--soft-border);
}

.section-alt {
    background: var(--light-navy);
}

.section-dark {
    background: var(--light-navy);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.2rem;
    background: var(--gold);
    margin-top: 0.5rem;
}

/* ================= LAYOUT ================= */

.split {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    align-items: center;
}

.split img {
    width: 100%;
    border-radius: var(--radius);
}

.services-grid {
    display: grid;
    gap: 2rem;
    /* grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.service-card {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;

    
}

/* Individual background images */
.kitchen { background-image: url('../img/kitchen.jpeg'); }
.bathroom { background-image: url('../img/bathroom.jpeg'); }
.basement { background-image: url('../img/basement.jpeg'); }
.feature { background-image: url('../img/feature-wall.jpeg'); }
.media { background-image: url('../img/media-wall.jpeg'); }
.accent { background-image: url('../img/accent-wall.jpeg'); }

/* Article text container */
.service-card article {
    width: 90%;
    padding: 1.5rem;
    color: white;
    background: transparent;
    transition: background 0.9s ease;
    border-radius: 2rem;
}

/* Hover effect: 40% dark overlay behind text */
.service-card:hover article {
    background: rgba(98, 99, 98, 0.7);
    border: 1px solid var(--white);
}

/* Optional smooth zoom effect */
.service-card:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* .services-grid article {
    background: var(--light-navy);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--soft-border);
    transition: transform 0.3s ease;
} */

.services-grid article:hover {
    transform: translateY(-0.4rem);
}

.services-grid h3 {
    color: var(--gold);
}


/* How it works section */
.how-it-works {
    padding: 6rem 1rem;
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
}

.how-it-works h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
    color: var(--gold);
    
}

.how-it-works h2::after {
    content: "";
    display: block;
    width: 10rem;
    height: 0.2rem;
    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        transparent
    );
    margin-top: 0.5rem;
    margin: 0.5rem auto 0 auto; /* This centers it */
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    opacity: 0.85;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
    gap: 2rem;
}

.step-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    background: var(--light-navy);
    border-radius: 12px;
    border: 1px solid var(--soft-border);
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Hover animation */
.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

/* Large faded number */
.step-number {
    position: absolute;
    top: -15px;
    right: 15px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--soft-border);
    z-index: 0;
}

/* Icon */
.step-icon {
    margin-bottom: 1rem;
    color: var(--gold);
    transition: transform 0.4s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.15) rotate(5deg);
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}


/* Our Work  */
.image-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.image-grid img {
    width: 100%;
    height: 80%;
    border-radius: var(--radius);
}

/* ================= FORM ================= */

form {
    max-width: 30rem;
}

label {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.4rem;
    background: var(--navy);
    border: 1px solid var(--soft-border);
    color: var(--white);
    border-radius: var(--radius);
}

input:focus,
textarea:focus {
    outline: 2px solid var(--gold);
    border-color: var(--gold);
}

select {
  background-color: var(--navy);
  color: var(--white);
  border: 1px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
}

select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.4);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-gold:hover {
    opacity: 0.85;
}


/* Error message */
.form-feedback.error {
    background-color: rgba(255, 77, 79, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Success message */
.form-feedback.success {
    background-color: rgba(75, 181, 67, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* ================= FOOTER ================= */

.footer {
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--soft-border);
    opacity: 0.8;
}

/* ================= MOBILE ================= */

.menu-btn {
    display: none;
    background: none;
    font-size: 1.8rem;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem;
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand img{
    width: 5rem;
    height: 5rem;
    border-radius: 10px;
} 
.gold {
  color: var(--gold);
}

.tagline {
  color: var(--gray);
  font-size: 1rem;
}

.footer h3 {
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--gold);
}

.contact-info a {
  display: inline-block;
}

.footer-social {
  margin-top: 3rem;
  text-align: center;
}

.footer-social a {
  margin: 0 1rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}


.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--navy); /* or white if dark bg */
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 2.5s ease-in-out infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* SVG inside button */
.floating-call-btn svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold); /* starting color */
    animation: strokeColor 1s infinite alternate;
}

@keyframes strokeColor {
    0% { stroke: var(--gold); }
    50% { stroke: var(--white); }
    100% { stroke: var(--gold); }
}



/* ================= LEGAL PAGES ================= */

.legal-page {
    padding: 5rem 0;
}

.legal-card {
    background: var(--light-navy);
    border: 1px solid var(--soft-border);
    border-radius: 0.9rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.legal-card h1 {
    color: var(--gold);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.legal-card h2 {
    color: var(--gold);
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-card h2::after {
    width: 4rem;
    background: var(--gold);
}

.legal-card p,
.legal-card li {
    color: rgba(255, 255, 255, 0.92);
}

.legal-card ul {
    padding-left: 1.25rem;
}

.legal-card a {
    color: var(--gold);
    text-decoration: none;
}

.legal-card a:hover,
.legal-card a:focus {
    text-decoration: underline;
}

.legal-intro {
    max-width: 60ch;
    opacity: 0.95;
}

.legal-meta {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.5rem;
}

.legal-note {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--soft-border);
}

@media (max-width: 48rem) {
    .legal-page {
        padding: 3.5rem 0;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .legal-card h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 48rem) {

    .nav {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .nav.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

     .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 2rem 1.2rem;
    }

    .step-number {
        font-size: 3rem;
        top: 10px;
        right: 10px;
    }

    .step-card h3 {
        font-size: 1.2rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }
}