@import "./typo.css";

* {
    box-sizing: border-box;
    margin: 0;
}

/* Guidelines */

:root {
    --brand-0: #ffffff;
    --brand-50: #EDFCF4;
    --brand-100: #D5F6E2;
    --brand-200: #AEECCA;
    --brand-300: #78DDAD;
    --brand-400: #42C58A;
    --brand-500: #1FAD72;
    --brand-600: #118A5A;
    --brand-700: #0E6E4B;
    --brand-800: #0E573D;
    --brand-900: #0C4833;
    --brand-1000: #06281D;
}

/* Global Styles */

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--brand-0);
    color: #333;
    margin: 0;
    padding: 0;
    position: relative;
}

.global-max-width {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.global-padding {
    padding-left: 20px;
    padding-right: 20px;
}

.global-padding-bg {
    background-color: var(--brand-700);
    color: var(--brand-0);
}

@media (max-width: 768px) {
    .global-padding {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4.5rem 0;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* Blocks */

.section-divider {
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
}

.section-header {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 60ch;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 0rem;
    }
}

.section-header-large {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 75ch;
}

.page-header {
    background-color: var(--brand-900);
    color: var(--brand-0);
}

.col-2 {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    grid-template-rows: auto;
    align-items: center; /* Prevent vertical stretching */
    gap: 1.25rem;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        row-gap: 2rem;
        height: auto;
    }
}

.col-2 > * {
    width: 100%;
}

.col-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.button-wrapper {
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
    height: auto;
    /* Allow buttons to wrap */
}

.hero-img-wrapper {
    aspect-ratio: 3/2;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: visible;
}

@media (max-width: 480px) {

    .hero-img-wrapper {
        width: 100%;
        height: 100%;
        aspect-ratio: 2/3;
        border: 1px solid #eee;
        background-color: #f9f9f9;
        padding-top: 0rem;
        margin-top: 0rem;
        border-radius: .5rem;
        overflow: hidden;
    }

    .hero-img-wrapper img {
        width: 100%;
        height: 160%;
        margin-top: -30%;
        object-fit: cover;
        overflow: clip;
    }
}

/* Header Styles */

.header {
    background: var(--brand-0);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#hero_section .section-header {
    margin-bottom: 1.5rem;
}

/* Buttons */
.primary-btn {
    display: flex;
    direction: row;
    align-items: center;
    gap: .4rem;
    background: var(--brand-500);
    color: var(--brand-0);
    border: 1px solid var(--brand-500);
    font-size: var(--class-font-body);
    font-family: var(--class-body-font);
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.primary-btn:hover {
    background: var(--brand-800);
    border: 1px solid var(--brand-800);
    color: white;
}

.primary-btn-sm {
    background: var(--brand-500);
    color: var(--brand-0);
    border: 1px solid var(--brand-500);
    font-size: calc(var(--class-font-body) / var(--class-scale-ratio));
    font-family: var(--class-body-font);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: .25rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    cursor: pointer;
}


.primary-btn-sm:hover {
    background: var(--brand-800);
    border: 1px solid var(--brand-800);
    color: white;
}

.secondary-btn {
    display: flex;
    direction: row;
    align-items: center;
    gap: .4rem;
    background: var(--brand-0);
    color: var(--brand-600);
    text-decoration: none;
    border: 1px solid var(--brand-0);
    font-size: var(--class-font-body);
    font-family: var(--class-body-font);
    font-weight: 600;
    padding: 12px 16px;
    border-radius: .25rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.secondary-btn:hover {
    background: var(--brand-800);
    border: 1px solid var(--brand-800);
    color: var(--brand-0);
}

.secondary-btn-sm {
    background: var(--brand-0);
    color: var(--brand-600);
    text-decoration: none;
    border: 1px solid var(--brand-0);
    font-size: calc(var(--class-font-body) / var(--class-scale-ratio));
    font-family: var(--class-body-font);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: .25rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.secondary-btn-sm:hover {
    background: var(--brand-800);
    border: 1px solid var(--brand-800);
    color: var(--brand-0);
}

.tabs-container {
    display: flex;
    overflow-x: auto;
    /* flex-wrap: wrap; */
    gap: 8px;
    padding-bottom: 8px;
    /* Space for scrollbar */
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

@media (max-width: 768px) {
    .tabs-container {
        padding: 12px 0;
        position: -webkit-sticky;
        position: sticky;
        top: 64px;
        background-color: var(--brand-0);
        z-index: 100;
    }

    /* .tabs-container *:not(body):not(.main) {
        overflow: visible;
    } */
}

.tabs-container::-webkit-scrollbar {
    display: none;
}


.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fafafa;
    color: black;
    text-decoration: none;
    text-wrap: nowrap;
    font-size: var(--class-font-body);
    font-family: var(--class-body-font);
    font-weight: 500;
    padding: 8px 12px 8px 8px;
    border-radius: 10rem;
    transition: background 0.3s, color 0.2s;
    cursor: pointer;
}

.tab-btn .ph-fill {
    color: var(--brand-500);
}

.ph-fill {
    /* font-size: calc(var(--class-font-body) * var(--class-scale-ratio)); */
    font-size: var(--class-h5);
    margin-left: -0.15rem;
    text-decoration: none;
}

@media (max-width: 480px) {
    .tab-btn {
        font-size: calc(var(--class-font-body) / var(--class-scale-ratio));
    }
}

input[type="radio"] {
    appearance: none;
    /* Hides default radio button */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

input[type="radio"]:checked {
    background-color: transparent;
    /* Ensures no blue selection appears */
}

/* Navigation Bar */

.navbar {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--brand-0);
    z-index: 1000;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.navbar li {
    display: inline;
    padding: 10px;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 60px;
}

.navbar-inner .button-wrapper {
    width: 100%;
    justify-content: flex-end;
}

.navbar-brand {
    display: block;
    width: 100%;
}

.navbar-links-wrapper {
    display: flex;
    align-items: baseline;
    gap: 20px;
    width: fit-content;
    text-wrap: nowrap;
}

@media (max-width: 768px) {
    #navbarNav {
        display: none;
    }
}

.navbar-links-wrapper a {
    color: var(--brand-1000);
    text-decoration: none;
    font-size: calc(var(--class-font-body) / var(--class-scale-ratio));
    font-family: var(--class-body-font);
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links-wrapper a:hover {
    color: var(--brand-600);
}

.navbar-links-wrapper a:active {
    color: var(--brand-600);
}


/* Footer Styles */

footer {
    background: #f9f9f9;
    color: black;
    padding: 20px 0;
    text-align: left;
    font-family: var(--class-body-font);
    line-height: var(--class-body-leading);
    padding-top: 48px;
    padding-bottom: 96px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0px;
}

@media (min-width: 768px) {
    .footer-grid>*:not(:first-child) {
        padding-left: 80px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: .5rem;
        row-gap: 1.75rem;
    }

    .footer-grid > :first-child {
        grid-column: span 2;
    }
}

.footer-social-link {
    text-decoration: none;
    color: var(--brand-500);
}

.footer-social-link:hover {
    color: var(--brand-800);
}

.footer-link {
    display: inline-flex;
    direction: row;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-family: var(--class-body-font);
    font-size: calc(var(--class-font-body) / var(--class-scale-ratio));
    color: var(--brand-1000);
}

.footer-link:hover {
    color: var(--brand-600);
}

.footer-link .ph-fill {
    color: var(--brand-500);
}

/* Utilitiy Classes */
.mb-0 {
    margin-bottom: 0rem;
    margin-top: 0;
}

.mb-4 {
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.mb-8 {
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.mb-12 {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.mb-16 {
    margin-bottom: 1rem;
    margin-top: 0;
}

.mb-20 {
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.mb-24 {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.mb-32 {
    margin-bottom: 2rem;
    margin-top: 0;
}

.mb-40 {
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.mb-48 {
    margin-bottom: 3rem;
    margin-top: 0;
}

.mb-56 {
    margin-bottom: 3.5rem;
    margin-top: 0;
}

/* .space-y-4 > * + * {
    margin-top: 4px;
} */

.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.space-y-8 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.space-y-12 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.space-y-16 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Accordion */
.accordion-wrapper {
    border: 1px solid #eee;
    background-color: var(--brand-0);
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

@media (max-width: 480px) {
    .accordion-wrapper {
        padding: .5rem;
    }
}

.accordion-wrapper:hover {
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: #ccc;
    background-color: rgba(0, 0, 0, 0.0);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s
}

@media (max-width: 480px) {
    .accordion-btn {
        padding: 0rem;
    }
}

.accordion-text {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;

    @media (max-width: 768px) {
        flex-direction: column;
    }
}

.accordion-img {
    display: block;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    /* border: 1px solid #eee; */

    @media (max-width: 768px) {
        max-width: 100%;
    }
}

.accordion-header {
    width: 100%;
    max-width: 60ch;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 .5rem 0;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 0 .75rem 1rem .75rem;
        justify-content: start;
        gap: 1rem;
    }
}

.accordion-header-text {
    height: auto;
}

.accordion-title {
    font-size: calc(var(--class-h5) * var(--class-scale-ratio));
    font-family: var(--class-heading-font);
    font-weight: var(--class-heading-weight);
    line-height: var(--class-heading-leading);
    margin-bottom: 8px;
}

.accordion-description {
    font-size: var(--class-font-body);
    font-family: var(--class-body-font);
    font-weight: var(--class-body-weight);
    line-height: var(--class-body-leading);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--brand-500);
}

@media (max-width: 768px) {
    .accordion-icon {
        display: none;
    }
}


.services-grid {
    color: #333;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

@media (min-width: 768px) {
    .service-card {
        display: flex;
        flex-direction: column;
        justify-content: start;
    }

    .service-card .button-wrapper {
        justify-self: start;
        height: 100%;
        align-items: end;
    }
}

.service-card-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.service-title {
    font-size: calc(var(--class-h6) * var(--class-scale-ratio));
    font-family: var(--class-heading-font);
    font-weight: var(--class-heading-weight);
    line-height: var(--class-heading-leading);
}

.service-price {
    font-size: calc(var(--class-h6) * var(--class-scale-ratio));
    font-family: var(--class-heading-font);
    font-weight: var(--class-heading-weight);
    line-height: var(--class-heading-leading);
}

.service-description {
    font-size: calc(var(--class-h6) / var(--class-scale-ratio));
    font-family: var(--class-body-font);
    font-weight: var(--class-body-weight);
    line-height: var(--class-body-leading);
    margin-bottom: 24px;
    max-width: 90ch;
}

.accordion-header .secondary-btn-sm {
    border: 1px solid #eee;
}

.service-card .secondary-btn {
    border: 1px solid #eee;
}

/* Page Specific Styles */

/* Specific styles for t&c.php */
#terms-and-conditions .h6 {
    opacity: 0.8;
}

#terms-and-conditions .global-max-width {
    max-width: 768px;
}

#privacy-policy h6 {
    opacity: 0.8;
}

#privacy-policy .global-max-width {
    max-width: 768px;
}

/* Specific styles for about.php */

@media (max-width: 768px) {
    /* #why_choose_us {
        display: grid;
        grid-template-columns: 1fr;
    } */

    #party-handshake-img {
        order: -1;
    }
}