@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

* 
{
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    box-sizing: border-box;
    background: transparent;
    list-style: none;
    font-size: 62.5%;
    font-family: 'Poppins', 'sans-serif';
    scroll-behavior: smooth;
}

a
{
    text-decoration: none;
    font-family: 'Playfair Display', 'sans-serif';
}

a img 
{
    border: none;
}
  
button,
a 
{
    cursor: pointer;
    color: inherit;
}
  
textarea 
{
    resize: none;
}
  
button,
textarea,
select
{
    appearance: none !important;
    border-radius: 0;
}

/* CSS RESET */

/* ROOT CSS VARIABLES */

:root 
{
    /* COLOR */

    --primary: #2C2A26;
    --secondary: #F5EDDC;
    --gold: #CBAC6F;
    --white: #FFFFFF;
    --error: #DC3232;
    --overlay: rgba(25, 30, 35, 0.30);

    /* COLOR */


    /* FONT */

    --fs-xxl: clamp(4rem, 3.4462rem + 2.4615vw, 6.4rem);
    --fs-xl: clamp(6.5rem, 6.5rem + 0vw, 6.5rem);
    --fs-l: clamp(2.9rem, calc(-1.16rem + 4.5vw), 3.6rem);
    --fs-md: clamp(1.6rem, 1.4308rem + 0.3077vw, 1.8rem);
    --fs-s: clamp(2rem);

    /* FONT */
}

/* GENERAL FONT CSS PROPERTIES */

h1
{
    color: var(--primary);
    font-size: var(--fs-xxl);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

h2
{
    color: var(--primary);
    font-family: 'Playfair Display';
    font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
}

h3
{
    color: var(--primary);
    font-family: 'Playfair Display';
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
}

p
{
    color: var(--primary);
    font-family: 'Inter';
    text-align: center;
    font-size: var(--fs-md);
    font-weight: 300;
    line-height: 1.5em;
    max-width: 500px;
    margin: 0 auto;
}

option
{
    font-size: 1.8rem;
    font-weight: 300;
}

label
{
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul li a
{
    font-size: 2rem;
}

.error
{
    color: var(--error);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.project-section-grid h3
{
    font-size: 2rem;
    font-weight: 600;
}

/* GENERAL FONT CSS PROPERTIES */

/* BUTTON CSS PROPERTIES */

.primary-button
{
    color: var(--white);
    background-color: var(--gold);
    font-family: 'Playfair Display', 'sans-serif';
    max-width: fit-content;
    min-width: 175px;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2rem;
    padding: 1.5rem 3rem;
    margin-top: 3rem;
    box-shadow: 0px 0px 0px 0px var(--secondary) inset;
    transition: all 600ms ease-in-out;
}

.secondary-button
{
    color: var(--primary);
    font-family: 'Playfair Display', 'sans-serif';
    max-width: fit-content;
    min-width: 175px;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--primary);
    padding: 1rem 3rem;
    margin-top: 3rem;
    transition: all 600ms ease-in-out;
}

.cta-button
{
    padding: 1.2rem 3rem;
    text-align: center;
}

.thanks-button
{
    display: flex;
    justify-content: center;
}

/* BUTTON CSS PROPERTIES */

/* LAYOUT CSS PROPERTIES */

section
{
    position: relative;
    width: 90%;
    max-width: 1140px;
    margin: 10rem auto;
    scroll-margin-top: 10rem;
}

iframe
{
    width: 100%;
    height: 500px;
}

.section-title
{
    margin-bottom: 2rem;
}

.divider
{
    background-color: var(--gold);
    height: 0.5rem;
    width: 10%;
    margin: 1.2rem auto;
}
/* LAYOUT CSS PROPERTIES */

/* HEADER SECTION */

header
{
    display: flex;
    height: 100px;
    background-color: var(--white);
    margin-bottom: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

.header-section
{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.header-section div img
{
    width: 200px;
}

.header-section div h2
{
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.header-section nav ul
{
    display: flex;
    align-items: center;
    gap: 2rem;
}


/* HERO SECTION */

.hero-section
{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary);
    padding-left: clamp(2rem, 3vw, 10rem);
    padding-right: clamp(2rem, 3vw, 10rem);
    padding-top: clamp(5rem, 3vw, 20rem);
    padding-bottom: clamp(5rem, 3vw, 20rem);
    min-height: 480px;
    background-image: url(../assets/images/safesoundspace_hero_background.png);
    background-size: cover;
    background-position: center;
}

.hero-section h2 {
    color: var(--white);
    font-size: 4.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(170, 170, 170, 0.6); /* your text color with 35% opacity */
    z-index: 1;
}

.hero-section-content {
    position: relative;
    z-index: 2;
}

.hero-section-buttons
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hero-section img
{
    max-width: 300px;
}

/* HERO SECTION */

/* INTRO SECTION */

.intro-section-grid 
{
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: flex-start; 
}
  
.intro-section-grid-item 
{
    display: flex;
    flex-basis: calc(50%);
    flex-direction: column;
    justify-content: center;
}

.intro-section-grid-item .section-title 
{
    display: flex;
    flex-basis: calc(50%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.intro-section-grid-item .section-title .divider
{
    margin: 1.2rem 0rem;
}

.intro-section-grid-item .secondary-button
{
    margin: 0;
}

.intro-section-grid-item .section-title p
{
    text-align: left;
    margin: 0;
}

.intro-section-grid-item img
{
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}


/* INTRO SECTION */

/* EFFECTS SECTION */

.effects-section-grid-item
{
    background-color: var(--secondary);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    height: 200px;
    padding: 2rem;
}

.effects-section-grid-item div
{
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    border-radius: 50%;
}

.effects-section-grid 
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1140px; 
    margin: 0 auto; 
}


/* EFFECTS SECTION */

/* PRODUCTS SECTION */

.products-section-grid-item
{
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    height: 200px;
    padding: 2rem;
}

.products-section-grid-item div
{
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    border-radius: 50%;
}

.products-section-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.products-section-grid-item {
    flex: 0 1 240px;
}

.products-section .section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* PRODUCTS SECTION */

/* TUTORIAL SECTION */

.tutorial-section-grid-item
{
    border: 2px solid var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    height: 240px;
    padding: 1rem;
}

.tutorial-section-grid-item div
{
    background-color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    font-size: 2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 1rem;
}


.tutorial-section-grid 
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1140px; 
    margin: 0 auto; 
}

/* TUTORIAL SECTION */

/* PRODUCT SECTION */

.story-section-grid 
{
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: flex-start; 
}
  
.story-section-grid-item 
{
    display: flex;
    flex-basis: calc(50%);
    flex-direction: column;
    justify-content: center;

}

.story-section-grid-item .section-title 
{
    display: flex;
    flex-basis: calc(50%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.story-section-grid-item .section-title .divider
{
    margin: 1.2rem 0rem;
}

.story-section-grid-item .section-title p
{
    text-align: left;
    margin: 0;
}

.story-section-grid-item img
{
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* PRODUCT SECTION */

/* TEST SECTION */

.test-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-section .primary-button{
    margin: 0;
}

/* TEST SECTION */

/* FAQ SECTION */

.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-container details {
    background: var(--secondary);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all .3s ease;
}

.faq-container details:hover {
    border-color: var(--gold);
}

.faq-container details[open] {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.faq-container summary {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    padding: 2rem;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary::after {
    content: "+";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    color: var(--gold);
    transition: .3s ease;
}

.faq-container details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-container details p {
    text-align: left;
    max-width: 100%;
    padding: 0 2rem 2rem;
    color: var(--primary);
}


/* TESTIMONIAL SECTION */

.testimonial-section {
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.4rem);
    padding: 3rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:nth-child(even) {
    border-left: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.testimonial-card p {
    max-width: 100%;
    font-style: italic;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(203,172,111,.3);
    transition: .3s;
}

.carousel-dots span.active {
    background: var(--gold);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* CONTACT SECTION */

form 
{
    max-width: 750px;
    margin: 0 auto;
}

.form-group 
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
  
.form-group div 
{
    flex-basis: 48%; 
}
  
label 
{
    display: block;
    margin-bottom: 5px;
}
  
input,
select,
textarea 
{
    font-size: 1.6rem;
    width: 100%;
    padding: 1.5rem;
    border: none; 
    border-bottom: 1px solid var(--primary);
    background-color: #FAFAFA;
    box-sizing: border-box; 
}

input:focus {
    border: 1px solid var(--primary);
}

textarea 
{
    resize: vertical;
    margin-bottom: 0rem;
}

.form-button
{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTACT SECTION */


/* POPUP SECTION */

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: min(100%, 900px);
}

.video-modal video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    max-height: 85vh;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    border: none;
    background: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* POPUP SECTION */

/* RESPONSIVE SETTINGS */

@media (min-width: 1141px) 
{
    .services-section-grid 
    {
        grid-template-columns: repeat(4, 1fr);
    }
}
  
@media (max-width: 768px) 
{
    .services-section-grid 
    {
        grid-template-columns: repeat(2, 1fr);
    }
}
  
@media (max-width: 480px) 
{
    .services-section-grid 
    {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 992px)
{
    .hamburger
    {
        display: none;
    }
}

@media (max-width: 480px) 
{
    .form-group div 
    {
      flex-basis: 100%; 
    }
}

@media (max-width: 768px) 
{
    .story-section-grid-item,
    .intro-section-grid-item 
    {
      flex-basis: 100%; 
    }
}
  
@media only screen and (max-width: 480px)
{
    .hero-section-buttons
    {
        flex-direction: column;
        gap: 2rem;
    }
    .secondary-button
    {
        margin-top: 0rem;
    }
}

@media only screen and (max-width: 768px)
{
    .story-section-grid,
    .intro-section-grid
    {
        gap: 3rem;
    }

}
@media only screen and (min-width: 992px)
{
    .hamburger
    {
        display: none;
    }

}
  
@media only screen and (max-width: 1100px)
{
    .header-section
    {
        padding: 0rem;
    }
    .header-section nav
    {
        background-color: var(--white);
        position: fixed;
        left: -100%;
        top: 75px;
        gap: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 400px;
        text-align: center;
        transition: 0.3s;
    }
    .header-section nav ul
    {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 2rem;
    }
    .header-section nav ul li a
    {
        margin-right: 0rem;
    }
    .header-section nav .primary-button
    {
        margin-top: 3rem;
    }
    .header-section nav.active
    {
        left: 0;
    }
    .hamburger
    {
        display: block;
        position: relative;
        user-select: none;
        appearance: none;
        border: none;
        background: none;
        cursor: pointer;
        z-index: 1;
        margin-bottom: -7px;
    }

    .hamburger span
    {
        display: block;
        position: relative;
        width: 33px;
        height: 3px;
        background-color: var(--primary);
        border-radius: 6px;
        margin-bottom: 7px;
        transform-origin: 0 0;
        transition: 0.5s;
        z-index: 1;
    }
    .hamburger:hover span:nth-child(2) 
    {
        background-color: var(--primary);
    }
    .hamburger.active span:nth-child(1) 
    {
        transform: translate(0px, -2px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) 
    {
        transform: translateX(150px);
    }    
    .hamburger.active span:nth-child(3) 
    {
        transform: translate(-2px, 1px) rotate(-45deg);
    }

}
  