* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "League Spartan", sans-serif;
}

body {
    width: 100%;
    color: rgb(248, 219, 144);
    background-color: rgb(40, 44, 56);
    overflow-x: hidden;
}

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

.template-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    background: rgb(40, 44, 56);
    color: rgb(248, 219, 144);
    border-bottom: 1px solid rgba(248, 219, 144, 0.18);
}

.template-preview-bar span {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.template-preview-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgb(248, 219, 144);
    color: rgb(40, 44, 56);
    font-weight: 700;
}

h1 {
    font-size: 50px;
    line-height: 64px;
    color: rgb(248, 219, 144);
    font-family: "Tangerine", cursive;
    font-weight: 400;
}

h2 {
    font-size: 46px;
    line-height: 54px;
}

h4 {
    font-size: 20px;
}

p {
    font-size: 16px;
    margin: 0 0 18px;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

.section-p1 {
    padding: 56px 80px;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    background: rgb(40, 44, 56);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
    gap: 24px;
    box-shadow: 0 14px 26px rgba(8, 14, 30, 0.2);
}

.svg-container {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    flex: 0 0 auto;
}

.svg-container a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.svg-container .logo {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.86);
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    display: contents;
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-toggle,
.dropdown-details summary {
    list-style: none;
}

.mobile-nav-toggle::-webkit-details-marker,
.dropdown-details summary::-webkit-details-marker {
    display: none;
}

#navbar li {
    list-style: none;
    padding: 0 20px;
    position: relative;
}

#navbar li a,
.dropbtn {
    font-size: 21px;
    font-weight: 600;
    color: rgb(248, 219, 144);
    transition: 0.3s ease;
    padding: 10px 14px;
    border-radius: 12px;
    border: 0;
    background: transparent;
}

#navbar li a:hover,
#navbar li a.active,
.dropbtn:hover,
.dropbtn.active,
.dropdown-details[open] > .dropbtn {
    color: rgb(40, 44, 56);
    background-color: rgb(248, 219, 144);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-details {
    position: relative;
}

.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-details > .dropbtn::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.dropdown-details[open] > .dropbtn::after {
    transform: rotate(225deg) translateY(1px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(40, 44, 56);
    min-width: 210px;
    z-index: 1000;
    padding-top: 6px;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: rgb(248, 219, 144) !important;
}

.dropdown-content a:hover {
    color: rgb(40, 44, 56) !important;
    background-color: rgb(248, 219, 144);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-details[open] .dropdown-content {
    display: block;
}

#hero,
#hero1,
#hero5 {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

#hero {
    background-image: url("images/bg.png");
    background-size: cover;
    background-position: top 25% right 0%;
    height: 90vh;
    min-height: 680px;
    padding: 56px 80px;
    justify-content: center;
    align-items: center;
}

.hero-overlay-card {
    max-width: 720px;
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(40, 44, 56, 0.72), rgba(40, 44, 56, 0.56));
    color: rgb(248, 219, 144);
    backdrop-filter: blur(8px);
    text-align: center;
    box-shadow: 0 24px 40px rgba(8, 14, 30, 0.24);
}

.hero-overlay-card h1 {
    margin: 0 0 10px;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 1;
    font-family: "Tangerine", cursive;
    font-weight: 700;
}

.hero-overlay-card h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    line-height: 1.2;
    color: rgb(248, 219, 144);
}

#hero2 {
    background-image: linear-gradient(rgba(8, 14, 30, 0.38), rgba(8, 14, 30, 0.38)), url("images/front.png");
    background-size: cover;
    background-position: center;
    height: 42vh;
}

#hero3 {
    background-image: linear-gradient(rgba(8, 14, 30, 0.38), rgba(8, 14, 30, 0.38)), url("images/gavel.png");
    background-size: cover;
    background-position: center;
    height: 42vh;
}

#hero4 {
    background-image: linear-gradient(rgba(8, 14, 30, 0.38), rgba(8, 14, 30, 0.38)), url("images/handshake.png");
    background-size: cover;
    background-position: center;
    height: 42vh;
}

#hero4 {
    background-image: linear-gradient(rgba(8, 14, 30, 0.38), rgba(8, 14, 30, 0.38)), url("images/handshake.png");
    background-size: cover;
    background-position: center;
    height: 42vh;
}

.about-page #hero2 {
    height: 100vh;
    background-attachment: fixed;
    background-position: top center;
}

.story-panel {
    position: relative;
    min-height: 860px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.story-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(8, 14, 30, 0.52), rgba(8, 14, 30, 0.52));
}

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

.story-panel-lawyer {
    background-image: url("images/gavel.png");
}

.story-panel-commit {
    background-image: url("images/handshake.png");
}

.story-panel-hours {
    background-image: url("images/front.png");
    background-position: top center;
}

.story-panel-services {
    background-image: url("images/gavel.png");
}

.story-panel-service-detail {
    background-image: url("images/handshake.png");
}

.story-panel-service-detail-alt {
    background-image: url("images/front.png");
}

.story-panel-dui {
    background-image: url("images/dui.png");
    background-position: center;
}

.story-panel-assault {
    background-image: url("images/assault.png");
    background-position: center;
}

.story-panel-theft {
    background-image: url("images/theft.png");
    background-position: center;
}

.story-panel-guns {
    background-image: url("images/guns.png");
    background-position: center;
}

.story-panel-probation {
    background-image: url("images/probation.png");
    background-position: center;
}

.story-panel-investigator {
    background-image: url("images/investigator.png");
    background-position: center;
}

.story-panel-court {
    background-image: url("images/court.png");
    background-position: center;
}

.story-panel-contact-info {
    background-image:
        linear-gradient(rgba(8, 14, 30, 0.5), rgba(8, 14, 30, 0.5)),
        url("images/map.png");
    background-position: center;
}

.story-panel-contact-message {
    background-image:
        linear-gradient(rgba(8, 14, 30, 0.5), rgba(8, 14, 30, 0.5)),
        url("images/front.png");
    background-position: center;
}

.story-heading {
    width: min(1120px, 100%);
    margin: 0 auto 20px;
    text-align: left;
    color: rgb(248, 219, 144);
}

.story-heading-commit {
    padding-left: clamp(28px, 8vw, 120px);
}

.story-headline-wrap {
    width: min(1120px, 100%);
    margin: 0 auto 20px;
}

.story-subheading {
    color: rgb(248, 219, 144);
    text-align: left;
}

.about-page .product1 {
    background-color: transparent;
}

.story-panel.product1 {
    background-color: transparent;
}

.story-panel.product1 .pro-container {
    width: min(1120px, 100%);
    margin: 0 auto;
    align-items: flex-start;
    background: rgba(40, 44, 56, 0.82);
    backdrop-filter: blur(5px);
    box-shadow: 0 26px 50px rgba(8, 14, 30, 0.22);
}

.contact-story-card {
    width: min(760px, 100%);
    margin: 0 auto;
    background: rgba(40, 44, 56, 0.82);
    backdrop-filter: blur(5px);
    box-shadow: 0 26px 50px rgba(8, 14, 30, 0.22);
}

.contact-form-static {
    margin-top: 28px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form-grid label {
    display: grid;
    gap: 8px;
    text-align: left;
    color: rgb(248, 219, 144);
    font-weight: 700;
}

.contact-form-grid span {
    font-size: 0.95rem;
}

.contact-form-grid input,
.contact-form-grid textarea {
    width: 100%;
    border: 1px solid rgba(248, 219, 144, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgb(248, 219, 144);
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
}

.contact-form-grid input::placeholder,
.contact-form-grid textarea::placeholder {
    color: rgba(248, 219, 144, 0.68);
}

.contact-form-message {
    grid-column: 1 / -1;
}

.contact-form-button {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: rgb(251, 240, 223);
    color: rgb(40, 44, 56);
    font: inherit;
    font-weight: 700;
    cursor: default;
}

.service-detail-card {
    width: min(760px, 100%);
    margin: 0 auto;
    align-items: flex-start;
}

.service-detail-card .pro2 {
    width: 100%;
    min-height: auto;
}

#product1 .pro2,
.service-detail-card .pro2 {
    width: min(960px, 100%);
    max-width: 960px;
    min-height: auto;
    margin: 0 auto;
    text-align: center;
}

#product1 .pro2 p,
.service-detail-card .pro2 p,
#product1 .pro2 h2,
.service-detail-card .pro2 h2 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#feature,
#feature h2 {
    color: rgb(248, 219, 144);
    font-family: "Tangerine", cursive;
    font-weight: 700;
    background-color: rgb(40, 44, 56);
    text-align: center;
}

.product1 {
    text-align: center;
    background-color: rgb(251, 240, 223);
    color: rgb(40, 44, 56);
}

.product1 .pro-container {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 28px;
    padding-top: 28px;
    flex-wrap: wrap;
    background-color: rgb(40, 44, 56);
    border-radius: 28px;
    padding: 28px;
}

.pro1 {
    width: 60%;
    min-height: 470px;
    padding: 10px 12px;
    border-radius: 25px;
    margin: 15px 0;
}

.pro2 {
    width: 25%;
    min-height: 470px;
    text-align: left;
    color: rgb(248, 219, 144);
}

.pro3, .pro4{
    color: rgb(248, 219, 144);
}

.pro3,
.pro4 {
    width: min(100%, 920px);
    margin: 0 auto;
}

#lawyer .pro3 {
    text-align: left;
    overflow: hidden;
}

#lawyer .pastor-photo-top {
    float: left;
    margin: 0 24px 16px 0;
    display: block;
    object-fit: cover;
}

.pro2 ul {
    line-height: 1.5;
}

.content-card {
    border-radius: 28px;
    background: rgb(40, 44, 56);
    color: rgb(248, 219, 144);
    padding: 30px;
    margin-top: 24px;
}

.content-card h2 {
    margin-bottom: 16px;
}

.content-card p,
.content-card li,
.content-card a {
    color: rgb(248, 219, 144);
}

.split-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
}

.media-card img {
    width: 100%;
    border-radius: 24px;
}

.contact-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.contact-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgb(251, 240, 223);
    color: rgb(40, 44, 56);
    font-weight: 700;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: rgb(40, 44, 56);
    color: rgb(248, 219, 144);
    gap: 28px;
}

footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 6px;
}

footer .logo {
    min-width: 175px;
    min-height: 125px;
    margin-bottom: 30px;
}

footer h4 {
    font-size: 14px;
    padding-bottom: 10px;
}

footer p,
footer a {
    font-size: 13px;
    color: rgb(248, 219, 144);
}

footer a:hover {
    color: rgb(248, 219, 144);
}

@media (max-width: 1200px) {
    .section-p1 {
        padding: 36px 48px;
    }

    #header {
        padding: 20px 40px;
        gap: 20px;
    }

    #header h1 {
        font-size: 40px;
        line-height: 1;
        text-align: center;
        flex: 1;
    }

    #hero {
        min-height: 600px;
        padding-inline: 48px;
    }

    .pro1 {
        width: 100%;
    }

    .pro2 {
        width: 35%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 36px;
        line-height: 1;
    }

    h2 {
        font-size: 34px;
        line-height: 1.15;
    }

    .section-p1 {
        padding: 32px 28px;
    }

    #header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 18px 28px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    #header h1 {
        display: none;
    }

    .mobile-nav {
        display: block;
        width: 100%;
        margin-top: 14px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 20px;
        border-radius: 999px;
        background: rgb(248, 219, 144);
        color: rgb(40, 44, 56);
        font-weight: 800;
        cursor: pointer;
        user-select: none;
    }

    .mobile-nav-toggle::after {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-1px);
        transition: transform 0.2s ease;
    }

    .mobile-nav[open] > .mobile-nav-toggle::after {
        transform: rotate(225deg) translateY(1px);
    }

    .mobile-nav:not([open]) #navbar {
        display: none;
    }

    #navbar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        padding: 14px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    #navbar li {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #navbar li a {
        display: block;
        border-radius: 12px;
        padding: 10px 14px;
    }

    .dropdown,
    .dropdown-details {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        margin-top: 6px;
        background-color: transparent;
        box-shadow: none;
    }

    .dropdown:not(:hover) .dropdown-content,
    .dropdown-details:not([open]) .dropdown-content {
        display: none;
    }

    .dropdown-content a {
        color: rgb(248, 219, 144) !important;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 6px;
        border-radius: 12px;
    }

    .dropbtn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 12px;
        color: rgb(248, 219, 144);
        font-size: 21px;
        font-weight: 600;
    }

    .dropbtn:hover,
    .dropdown-details[open] > .dropbtn,
    .dropbtn.active {
        color: rgb(40, 44, 56);
        background-color: rgb(248, 219, 144);
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .product1 .pro-container {
        gap: 24px;
        padding: 24px;
        border-radius: 24px;
    }

    .pro1,
    .pro2 {
        width: 100%;
        min-height: 0;
    }

    .pro2,
    .pro3,
    .pro4 {
        text-align: left;
    }

    #hero {
        min-height: 520px;
        height: auto;
        padding: 56px 28px;
    }

    .hero-overlay-card {
        width: min(100%, 620px);
        padding: 24px;
        border-radius: 24px;
    }

    .story-panel {
        min-height: 720px;
        padding-block: 48px;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
    }

    .story-headline-wrap,
    .story-heading {
        margin-bottom: 16px;
    }

    .story-heading,
    .story-subheading {
        text-align: center;
    }

    .story-heading-commit {
        padding-left: 0;
    }

    .story-panel.product1 .pro-container,
    .service-detail-card,
    .contact-story-card {
        width: 100%;
    }

    .story-panel.product1 .pro-container {
        margin-inline: 0;
    }

    #lawyer .pastor-photo-top {
        float: none;
        width: min(100%, 340px);
        margin: 0 auto 18px;
    }

    .content-card,
    .contact-story-card {
        padding: 24px;
        border-radius: 24px;
    }

    .contact-actions a,
    .contact-form-button {
        width: 100%;
    }

    footer {
        gap: 24px;
    }

    footer .col {
        flex: 1 1 280px;
    }
}

@media (max-width: 768px) {
    .product1 .pro-container {
        padding: 18px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }

    .section-p1 {
        padding: 28px 18px;
    }

    #header {
        top: 0;
        gap: 14px;
        padding: 14px 16px 16px;
        align-items: center;
        justify-content: space-between;
    }

    .template-preview-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }

    .mobile-nav-toggle {
        width: 100%;
    }

    .svg-container {
        width: 72px;
        height: 72px;
    }

    .svg-container .logo {
        transform: translate(-67%, -40%) scale(0.52);
    }

    #hero {
        min-height: 420px;
        height: auto;
        background-position: center;
        padding: 34px 18px;
    }

    #hero1,
    #hero5 {
        height: 34vh;
        background-position: top center;
    }

    .hero-overlay-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .hero-overlay-card h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .hero-overlay-card h2 {
        font-size: clamp(1.15rem, 5vw, 1.65rem);
    }

    #feature {
        padding-block: 22px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .about-page #hero2,
    .story-panel {
        background-attachment: scroll;
    }

    .about-page #hero2,
    .story-panel {
        min-height: 0;
        height: auto;
    }

    .story-panel {
        padding-block: 36px;
    }

    .story-panel.product1 .pro-container,
    .service-detail-card .pro2,
    .pro3,
    .pro4 {
        width: 100%;
        max-width: none;
    }

    .story-heading {
        font-size: clamp(1.85rem, 8vw, 2.4rem);
        line-height: 1.15;
    }

    .content-card,
    .contact-story-card {
        margin-top: 0;
        padding: 20px 18px;
    }

    .contact-actions {
        display: grid;
        gap: 10px;
    }

    footer {
        padding-top: 24px;
    }

    footer .logo {
        min-width: 120px;
        min-height: 88px;
        margin-bottom: 10px;
    }
}

@media (max-width: 560px) {
    h2 {
        font-size: 24px;
        line-height: 1.15;
    }

    p {
        font-size: 14px;
        line-height: 1.65;
    }

    .template-preview-bar a {
        width: 100%;
    }

    #header {
        padding: 12px 14px 14px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .svg-container {
        width: 62px;
        height: 62px;
    }

    .mobile-nav-toggle,
    #navbar li a,
    .dropbtn {
        min-height: 44px;
        font-size: 18px;
    }

    .mobile-nav-toggle {
        padding-inline: 16px;
    }

    #navbar {
        gap: 6px;
        padding-top: 12px;
    }

    .dropdown-content a {
        margin-top: 5px;
        padding: 11px 12px;
    }

    #hero {
        min-height: 360px;
        padding: 28px 14px;
    }

    .hero-overlay-card {
        padding: 18px 16px;
    }

    #lawyer .pastor-photo-top {
        width: min(100%, 260px);
        border-radius: 18px;
    }

    .section-p1 {
        padding: 24px 14px;
    }

    .product1 .pro-container,
    .content-card,
    .contact-story-card {
        padding: 16px;
        border-radius: 20px;
    }

    .story-heading {
        margin-bottom: 12px;
    }

    .story-panel::before {
        background: linear-gradient(rgba(8, 14, 30, 0.6), rgba(8, 14, 30, 0.62));
    }

    .contact-form-grid {
        gap: 12px;
    }

    .contact-form-grid input,
    .contact-form-grid textarea {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .contact-form-button {
        margin-top: 14px;
    }

    footer {
        padding-bottom: 24px;
    }

    footer .col {
        flex-basis: 100%;
    }
}
