/* ==========================================================
   Better Call Bill Consulting
   styles.css
   Part 1
   ========================================================== */

/* ==========================================================
   CSS Variables
   ========================================================== */

:root {

    --navy: #10243D;
    --blue: #1F5E9C;
    --gold: #C79A2D;

    --background: #F8F9FB;
    --white: #FFFFFF;
    --text: #222222;
    --light-text: #666666;
    --border: #E4E8EE;

    --shadow:
        0 8px 24px rgba(0,0,0,.08);

    --radius: 12px;

    --transition:
        all .25s ease;

    --container:
        1200px;

}

/* ==========================================================
   Reset
   ========================================================== */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: "Inter", sans-serif;

    font-size: 16px;

    line-height: 1.7;

    color: var(--text);

    background: var(--background);

    -webkit-font-smoothing: antialiased;

}

img {

    display: block;

    max-width: 100%;

    height: auto;

}

a {

    text-decoration: none;

    color: inherit;

    transition: var(--transition);

}

ul {

    list-style: none;

}

.container {

    width: min(92%, var(--container));

    margin-inline: auto;

}

/* ==========================================================
   Typography
   ========================================================== */

h1,
h2,
h3 {

    font-family: "Merriweather", serif;

    color: var(--navy);

    line-height: 1.2;

}

h1 {

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    margin-bottom: 1.5rem;

}

h2 {

    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 1rem;

}

h3 {

    font-size: 1.4rem;

    margin-bottom: .75rem;

}

p {

    color: var(--light-text);

    margin-bottom: 1rem;

}

.section-label {

    display: inline-block;

    color: var(--gold);

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: .75rem;

    font-size: .85rem;

}

.section-heading {

    text-align: center;

    max-width: 760px;

    margin: 0 auto 4rem;

}

/* ==========================================================
   Header
   ========================================================== */

header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(10px);

    box-shadow: 0 2px 12px rgba(0,0,0,.05);

}

.nav-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    min-height: 82px;

}

.logo img {

    height: 64px;

    width: auto;

}

.nav-links {

    display: flex;

    gap: 2rem;

}

.nav-links a {

    font-weight: 600;

    color: var(--navy);

    position: relative;

}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--gold);

    transition: .25s;

}

.nav-links a:hover::after {

    width: 100%;

}

/* ==========================================================
   Hero
   ========================================================== */

.hero {

    position: relative;

    min-height: 92vh;

    display: flex;

    align-items: center;

    overflow: hidden;

}

.hero-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    z-index: 1;

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(16,36,61,.90) 0%,
            rgba(16,36,61,.70) 45%,
            rgba(16,36,61,.30) 100%
        );

    z-index: 2;

}

.hero-content {

    position: relative;

    z-index: 3;

    max-width: 700px;

    color: white;

}

.hero-tag {

    display: inline-block;

    padding: .55rem 1rem;

    border-radius: 999px;

    background: rgba(255,255,255,.15);

    border: 1px solid rgba(255,255,255,.25);

    margin-bottom: 2rem;

    font-size: .9rem;

    color: white;

}

.hero h1 {

    color: white;

}

.hero p {

    color: rgba(255,255,255,.90);

    font-size: 1.15rem;

    max-width: 650px;

}

.hero-services {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    margin: 2rem 0;

}

.hero-services span {

    padding: .65rem 1.2rem;

    border-radius: 999px;

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.18);

    color: white;

    font-weight: 600;

}

.button {

    display: inline-block;

    padding: 1rem 2rem;

    border-radius: 8px;

    background: var(--gold);

    color: white;

    font-weight: 700;

    transition: var(--transition);

    box-shadow: var(--shadow);

}

.button:hover {

    transform: translateY(-3px);

    background: #b98d25;

}

/* ==========================================================
   Services
   ========================================================== */

.services {

    padding: 6rem 0;

}

.service-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px,1fr));

    gap: 2rem;

}

.service-card {

    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition: var(--transition);

}

.service-card:hover {

    transform: translateY(-8px);

}

.service-card img {

    width: 100%;

    height: 230px;

    object-fit: cover;

}

.card-content {

    padding: 2rem;

}

.card-content p {

    margin-bottom: 0;

}

/* ==========================================================
   Feature Cards
   ========================================================== */

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap: 2rem;

}

.feature-card {

    background: white;

    border-radius: var(--radius);

    padding: 2.5rem;

    text-align: center;

    box-shadow: var(--shadow);

    transition: var(--transition);

}

.feature-card:hover {

    transform: translateY(-6px);

}

.feature-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 1.5rem;

    border-radius: 50%;

    background: var(--blue);

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 1.8rem;

    font-weight: bold;

}

/* ==========================================================
   Why Choose Us
   ========================================================== */

.why-us {
    padding: 6rem 0;
    background: var(--background);
}

/* ==========================================================
   Process Timeline
   ========================================================== */

.process {
    padding: 6rem 0;
    background: var(--white);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.timeline-step {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-step:hover {
    transform: translateY(-6px);
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   Industries
   ========================================================== */

.industries {
    padding: 6rem 0;
    background: var(--background);
}

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

.industry-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.industry-card:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-5px);
}

/* ==========================================================
   About
   ========================================================== */

.about {
    padding: 6rem 0;
    background: var(--white);
}

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

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Contact
   ========================================================== */

.contact {
    padding: 6rem 0;
    background: var(--background);
}

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

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.contact-card a {
    color: var(--blue);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--gold);
}

/* ==========================================================
   Footer
   ========================================================== */

footer {
    background: var(--navy);
    color: rgba(255,255,255,.85);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.footer-logo {
    width: 90px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,.85);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    padding: 1.25rem;
    font-size: .95rem;
}

.footer-bottom p {
    color: rgba(255,255,255,.70);
    margin: 0;
}

/* ==========================================================
   Focus Styles
   ========================================================== */

a:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    border-radius: 6px;
}

/* ==========================================================
   Selection
   ========================================================== */

::selection {
    background: var(--blue);
    color: var(--white);
}

/* ==========================================================
   Responsive - Tablet
   ========================================================== */

@media (max-width: 992px) {

    .timeline {
        grid-template-columns: repeat(2,1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

}

/* ==========================================================
   Responsive - Mobile
   ========================================================== */

@media (max-width: 768px) {

    header {
        position: relative;
    }

    .nav-container {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-services {
        justify-content: center;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

}

/* ==========================================================
   Responsive - Small Phones
   ========================================================== */

@media (max-width: 480px) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

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

    .hero-services span {
        width: 100%;
    }

}

/* ==========================================================
   Print Styles
   ========================================================== */

@media print {

    header,
    footer,
    .button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .service-card,
    .feature-card,
    .contact-card,
    .industry-card,
    .timeline-step {
        box-shadow: none;
        border: 1px solid #ccc;
    }

}

/* ==========================================================
   End of File
   ========================================================== */
