:root {
    --bg-color: #202029;
    --accent-color: #efefef;
    --text-color: #f7f7f7;
    --brand-color: #e4cfa1;
    --brand-accent: #0000EE;
    --highlight-color: #551A8B;
    --clicked-color: #555;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Garamond;
    color: var(--text-color);
    overflow-x: hidden;
}
  
h1 {
    font-size: 4rem;
    letter-spacing: 1px;
}

main {
  display: block;
  width: 100%;
}

h4 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

p {
    margin: 0;
}

.section {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

/* */
.hero {
    background-image: url("hero.jpg");
    background-size: cover;
    height: 95vh;
    padding: 0px;
    align-content: center;
}

.hero-content {
    width: 90%;
    margin: auto;
    min-width: 240px;
    text-align: center;
}

.hero-content h1 {
    font-size: max(3vw, 40px);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: max(1.5vw, 18px);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

/* */
.sales {
    background-color: var(--bg-color);
    height: fit-content;
    display: block;
}

.sales-content {
    padding: 0;
}

.overlap-wrapper {
    width: 100%;
    height: 0px;
}

.overlap {
    top: 0%;
    left: 50%;
    transform: translate(0%, -50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 60%;
    min-width: 480px;
    margin: 0 auto;
    height: fit-content;
}

.dogtag {
    background-color: var(--accent-color);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    height: 40vh;
    width: 30%;
    z-index: 10;
    border-radius: 0.25rem;
    transition: background-color 0.4s ease, transform 0.3s ease;
    display: block;
    text-align: center;
    color: var(--bg-color);
}

.dogtag h4 {
    font-size: 1.5rem;
    min-height: 2.1em;
    height: 30%;
    margin: 0;
}

/* .dogtag p {
    color: var(--bg-color);
    text-align: center;
    margin: 0 0.5rem;
    height: 45%;
} */

.dogtag img {
    padding: 0;
    margin: 0;
    height: 70%;
    width: 100%;
    border-radius: 0.25rem 0.25rem 0 0;
}

.dogtag:hover {
    background-color: var(--brand-color);
}

.card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    text-align: center;
    align-content: center;
    transition: 0.6s;
    border-radius: 50vw 50vw 2rem 2rem;
    box-sizing: border-box;
    padding: 0.5rem;
}

.card img {
    max-width: 80%;
    max-height: 40%;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border: 1px solid var(--clicked-color);
    border-radius: 50%;
    margin: 0 auto 0 auto;
    height: auto;
}

.card p {
    flex-grow: 1;
    margin: 1rem 0.25rem;
}

.card button {
    align-self: center;
}

.card h4 {
    margin-bottom: 3vh;
    font-size: 1.5rem;
    min-height: 2.1em;
}

h2 {
    text-align: center;
    font-size: max(2rem, 32px);
    margin: 0 auto;
}

.underlined-text {
    display: flex;
    flex-direction: column;
    align-content: center;
    margin: 1rem auto 3rem auto;
}

.underscore {
    width: 20vw;
    min-width: 200px;
    height: auto;
    margin: 0 auto;
}

.sales-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sales-content {
    margin: 0 auto;
    padding: 5vh 0;
    display: block;
}

/* */
.services {
    background-color: var(--accent-color);
    background-image: url("marble-2362267_1920.jpg");
    background-size: cover;
    height: fit-content;
}

.services-content {
    color: var(--bg-color);
    margin: 0 auto;
    padding: 5vh 0;
}

.services-content h4 {
    min-height: 4.2em;
}

.group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 1.5vw;
    width: 85%;
    margin: 0 auto;
}

.group a {
    text-decoration: none;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    text-align: center;
    align-content: center;
    transition: 0.6s;
    border-radius: 0.5rem;
}

.service-card h4 {
    margin: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    min-height: 2.1em;
}

.blog-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.light:hover {
    background-color: rgba(0,0,0, .1);
}

.dark:hover {
    background-color: rgba(255,255,255, .1);
}

.services button {
    margin-bottom: 10px;
}

/* */
.commitments {
    background-color: var(--bg-color);
    height: fit-content;
}

.commitments-content {
    color: var(--accent-color);
    margin: 0 auto;
    padding: 5vh 0;
}

.commitments-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    text-align: center;
    align-content: center;
    transition: 0.6s;
    border-radius: 50vw 50vw 1rem 1rem;
    box-sizing: border-box;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
}

.commitments-card img {
    max-width: 90%;
    max-height: 50%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 0.5rem;
}

.commitment-text {
    display: block;
    flex-grow: 1;
    margin: 1rem 0.25rem;
}

.commitments h4 {
    font-size: 1.5rem;
    min-height: 3.2em;
    height: 25%;
    align-content: center;
    margin: 0;
}

.commitments p {
    margin: 1rem 0 0 0;
}

/* */
.contacts {
    background-image: url("marble-2362267_1920.jpg");
    background-size: cover;
    color: var(--bg-color);
    height: fit-content;
}

.contacts-content {
    margin: 0 auto;
    padding: 5vh 0;
    width: 85%;
}

.contact-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    width: 85%;
    min-width: 480px;
    margin: 0 auto;
}

.contact-group > * {
    flex: 1 1 200px; /* grows, shrinks, base width */
    min-width: fit-content;
}

.contact-data {
    padding: 20px;
    border-left: 1px solid var(--clicked-color);
}

ul {
    margin: 1rem 0;
    flex-grow: 1;
    text-align: left;
    padding-inline-start: 20px;
}

.copyright {
    background-color: var(--bg-color);
    height: 21vh;
}

button {
    border: 1px solid #ccc; /* softer border for a clean look */
    padding: 10px 32px; 
    border-radius: 8px;
    font-size: 1rem;
    transition: 
      background-color 0.4s ease,
      transform 0.5s ease,
      box-shadow 0.2s ease;
    margin: 0.5rem auto;
    display: block;
    cursor: pointer;
    background-color: var(--brand-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* subtle undershadow */
  }

.cta {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

a {
    border: none;
    width: fit-content;
    margin: 0 auto;
    text-decoration: none;
}

.img-pricing {
    display: flex;
    flex-direction: row;
}

select {
    height: fit-content;
    margin-left: 1em;
}

@media only screen and (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    select {
        height: fit-content;
        margin: auto;
        margin-inline-start: 0.5em;
    }

    h2 {
        margin: 0 auto;
    }

    .group {
        grid-template-columns: repeat(1, minmax(180px, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        width: 95%;
        gap: 2rem;
    }

    .card {
        flex-direction: column;
        flex-grow: 1;
        min-height: fit-content;
        border-radius: 1rem;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.15);
    }

    .card img {
        height: 0;
        width: 0;
        padding: 0;
        border: 0px solid transparent;
    }

    .cleaning {
        background-image: url("restoration-mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    .memorial {
        background-image: url("memorial-mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    .digital {
        background-image: url("camera-mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    .dirty {
        background-image: url("dirty_stone_mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    .involved {
        background-image: url("cleaning-mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    .preserve {
        background-image: url("seasonal_mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    .decorations {
        background-image: url("decorations-mobile.jpg");
        background-position: center;
        background-size: cover;
    }

    /* .card img {
        max-height: 50vh;
        max-width: 30vw;
        aspect-ratio: 1 / 1;
        padding: 10px;
        border: 1px solid var(--clicked-color);
        border-radius: 50%;
        margin: auto;
        height: auto;
        margin-left: -10%;
        margin-right: 0%;
    } */

    .light {
        background-color: rgba(0,0,0, .1);
        text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.9);
    }

    .light img {
        margin-left: 0%;
        margin-right: -10%;
    }
    
    .dark {
        background-color: rgba(255,255,255, .1);
        text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
    }

    .sales-item {
        flex: 1;
        margin: 0 1rem;
    }

    .sales-item h4 {
        margin: 0.5rem;
        min-height: 1rem;
    }

    .blog-item h4 {
        margin: 0.5rem;
        min-height: 1rem;
    }

    .commitments-card {
        flex-direction: row;
        min-height: fit-content;
        height: fit-content;
        border-radius: 1rem;
    }

    .commitments-card img {
        max-height: 40vh;
        max-width: 25vw;
        aspect-ratio: 1 / 1;
        margin: auto;
    }

    .commitment-text {
        margin: 0 1rem;
    }

    .commitment-text h4 {
        align-content:normal;
    }

    .commitments p {
        margin: 0 1rem;
    }

    .img-pricing h2 {
        margin: 0 1rem;
        align-content: center;
    }

    .img-pricing p {
        flex: 1;
        align-content: center;
        text-align: right;
    }
}