/*
Theme Name: HYP Custom Theme
Author: Hector Quinones
Description: Custom theme for HYP
*/

/* --- LOCAL FONTS --- */
@font-face {
    font-family: 'Quasimoda';
    src: url('assets/fonts/Quasimoda-Extrabold.woff2') format('woff2'),
         url('assets/fonts/Quasimoda-Extrabold.woff') format('woff');
    font-weight: 800; 
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Veselina';
    src: url('assets/fonts/VaselinaRegular.woff2') format('woff2'),
         url('assets/fonts/VaselinaRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- BASE STYLES --- */
body {
    font-family: 'Inter', sans-serif !important; 
    background-color: #FFF5E7;
    color: #000000;
    line-height: 1.6;
}

/* --- TYPOGRAPHY UTILITIES --- */
.hyp-h2-quasimoda {
    font-family: 'Quasimoda', sans-serif !important;
    font-weight: 800 !important;
    font-style: normal !important;
    text-align: center;
    line-height: 1.1;
    font-size: 40px;
    /* Rendering optimizations for geometric fonts */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
    .hyp-h2-quasimoda { font-size: 55px; }
}

.hyp-h2-quasimoda.text-left {
    text-align: left !important;
}

.hyp-h3-brand {
    font-family: 'Inter', sans-serif !important;
    font-size: 24px;
    font-weight: 500 !important;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hyp-h3-brand { font-size: 38px; }
}

.hyp-h4-brand {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px; /* Mobile */
    font-weight: 500 !important; /* Medium */
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hyp-h4-brand { font-size: 32px; }
}

/* --- CTA Button Typography --- */
.cta-button-font {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important; /* Bold */
    font-size: 14px !important;
    letter-spacing: 0.15em !important; /* 15% letter spacing */
    text-transform: uppercase !important;
    line-height: 1 !important;
}

/* Global Button Override for consistency */
button, 
.button, 
input[type="submit"], 
.wpcf7-submit,
.nav-link.inline-block {
    @apply cta-button-font; /* If using Tailwind, otherwise copy the properties above */
}

.bg-brand-light-turquoise { background-color: #2AA8A3 !important; }
.bg-brand-dark-turquoise { background-color: #175C58 !important; }
.bg-brand-teal { background-color: #228682 !important; }


.font-headline { font-family: 'Quasimoda', sans-serif !important; font-weight: 800 !important; letter-spacing: 0.02em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.font-subhead { font-family: 'Quasimoda', sans-serif !important; font-weight: 600 !important; }
.font-display { font-family: 'Veselina', sans-serif !important; }
.font-inter { font-family: 'Inter', sans-serif !important; }

.text-inter-38 {
    font-family: 'Inter', sans-serif !important;
    font-size: 38px;
    font-weight: 500 !important;
    line-height: 1.1;
}

.text-inter-55 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 40px; /* Mobile */
    line-height: 1.1;
}
@media (min-width: 768px) {
    .text-inter-55 { font-size: 55px; }
}

/* Inter Medium 30 (The city... starts today) */
.text-inter-30 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 24px; /* Mobile */
    line-height: 1.2;
}
@media (min-width: 768px) {
    .text-inter-30 { font-size: 30px; }
}

.text-inter-32 { 
    font-family: 'Inter', sans-serif !important; 
    font-size: 32px; 
    font-weight: 500 !important; 
}

.text-inter-24 { 
    font-family: 'Inter', sans-serif !important; 
    font-size: 24px; 
    font-weight: 500 !important; 
}

@media (min-width: 768px) {
    .text-inter-24 { font-size: 24px; }
}

.text-inter-19 { 
    font-family: 'Inter', sans-serif !important; 
    font-size: 19px; 
    font-weight: 400 !important; 
}

/* --- Footer Navigation Font --- */
.footer-nav-font {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important; /* Semi Bold */
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

.bg-brand-orange {
    background-color: #EC6B43 !important;
}

.bg-brand-orange:hover,
.hover\:bg-brand-orange-light:hover {
    background-color: #FFAF96 !important;
}

/* --- COMPONENTS --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-left: 1rem;
}
.accordion-item.open .accordion-content {
    max-height: 500px;
}
.accordion-item.open .chevron {
    transform: rotate(180deg);
}
.chevron {
    transition: transform 0.3s ease-in-out;
}
.accordion-content p {
    font-weight: normal;
}

.page-content { display: none; }
.page-content.active { display: block; }

.page-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.page-slide.active { display: block; }

/* --- FIXED TESTIMONIAL DOTS --- */
.page-slide-dots-instance {
    display: flex;
    flex-wrap: wrap;       /* Allows dots to move to a second row if space runs out */
    justify-center: center;
    gap: 12px;             /* Spacing between circles */
    max-width: 450px;      /* Matches the width of your testimonial card */
    margin: 2rem auto 0;   /* Centers the entire dots block */
}

.page-slide-dot {
    cursor: pointer;
    height: 28px !important;  /* Forced 28px height */
    width: 28px !important;   /* Forced 28px width */
    flex-shrink: 0;
    background-color: transparent; /* Inactive is hollow */
    border: 2px solid #FFFFFF;     /* White outline per image_69c0c1.jpg */
    border-radius: 50%;            /* Perfect circle */
    display: inline-block;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Active and Hover states: Solid White #FFFFFF */
.page-slide-dot.active, 
.page-slide-dot:hover {
    background-color: #FFFFFF !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

.resource-content-panel { display: none; }
.resource-content-panel.active { display: block; }

.resource-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-transform: uppercase;
    line-height: 1.25rem;
    border: 2px solid transparent;
}
.resource-btn:hover, .resource-btn.active {
    background-color: #4A8380;
    color: #FFFFFF;
}

.testimonial-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background-color: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .testimonial-card {
        grid-template-columns: 150px 1fr;
        text-align: left;
    }
}

/* --- Global Newsletter Force-Alignment --- */

/* 1. Reset CF7 Wrappers to allow flex-row alignment */
.newsletter-form-container .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.newsletter-form-container .wpcf7-form {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
}

@media (min-width: 768px) {
    .newsletter-form-container .wpcf7-form {
        flex-direction: row;
    }
    .newsletter-form-container .wpcf7-form-control-wrap {
        flex: 1; /* Makes inputs share the row equally */
    }
}

/* 2. Unified Height and centering */
.newsletter-form-container input,
.newsletter-form-container button[type="submit"] {
    height: 54px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

/* 3. Inputs: Pill-Shape & 15.21px Font */
.newsletter-form-container input:not([type="submit"]) {
    border-radius: 9999px !important;
    padding: 0 24px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15.21px !important; /* Specific size requested */
    border: 1px solid #e5e7eb !important;
    background-color: white !important;
}

/* 4. Button: Squared-pill & 13px Bold Font */
.newsletter-form-container button[type="submit"],
.newsletter-form-container .wpcf7-submit {
    border-radius: 14px !important;
    padding: 0 40px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important; /* Bold */
    font-size: 13px !important;  /* Specific size requested */
    text-transform: uppercase;
    line-height: 1 !important;
    background-color: #f47645 !important;
    color: white !important;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (min-width: 768px) {
    .newsletter-form-container button[type="submit"] {
        width: auto; /* Prevent button from stretching on desktop */
    }
}

.newsletter-form-container button[type="submit"]:hover {
    background-color: #d65d30 !important;
}

/* Shift Alyssa's headshot down to prevent cropping */
.secretary-headshot {
    object-position: top center !important;
}

/* --- ICS CALENDAR BRAND FORCE: TRIPLE COLOR DESIGN --- */

/* 1. Month/Year Line: Dark Turquoise #175C58 */
.ics-calendar-month-grid .ics-calendar-header {
    background-color: #175C58 !important;
    padding: 15px 20px !important;
    margin-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important; /* Rounds top corners */
}

.ics-calendar-month-grid .ics-calendar-header h3 {
    color: #FFFFFF !important;
    font-family: 'Quasimoda', sans-serif !important;
    font-size: 24px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
}

/* 2. Days of the Week Line: Brand Teal #228682 */
.ics-calendar-month-grid thead.ics-calendar-labels th.ics-calendar-label {
    background-color: #228682 !important; 
    color: #FFFFFF !important; 
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border: none !important;
    padding: 12px 0 !important;
}

/* 3. Each Day Number Bar: Brand Orange #EC6B43 */
.ics-calendar-month-grid .ics-calendar-date-wrapper {
    background-color: #EC6B43 !important;
    color: #FFFFFF !important;
    padding: 4px 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    text-align: right;
}

/* Extra Pop: Subtle grid border and "Today" highlight */
.ics-calendar-month-grid .day {
    border: 1px solid rgba(23, 92, 88, 0.1) !important;
}

.ics-calendar-month-grid tbody td.ics-calendar-today {
    background-color: rgba(42, 168, 163, 0.05) !important;
    border: 3px solid #175C58 !important; /* Thick Turquoise border for today */
}

/* --- HYP CALENDAR BRANDING POPS --- */

/* 1. Change the main grid borders from grey to brand teal */
#hyp-custom-calendar .ics-calendar-month-grid,
#hyp-custom-calendar .ics-calendar-month-grid .day {
    border-color: rgba(23, 92, 88, 0.2) !important; /* Soft Dark Turquoise */
}

/* 2. Add a very light teal tint to the cell backgrounds to remove the "stark white" look */
#hyp-custom-calendar .ics-calendar-month-grid .day {
    background-color: #F8FCFB !important; /* Hint of teal */
}

/* 3. Make "Today" stand out with a solid Brand Orange top-border and light tint */
#hyp-custom-calendar .ics-calendar-today {
    border-top: 4px solid #EC6B43 !important;
    background-color: rgba(42, 168, 163, 0.1) !important; /* Light Turquoise tint */
}

/* 4. Color the day numbers so they aren't plain black/grey */
#hyp-custom-calendar .ics-calendar-month-grid .day .no_phone {
    color: #175C58 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* 5. Hover effect: make the cell light orange when hovering */
#hyp-custom-calendar .ics-calendar-month-grid .day:hover {
    background-color: rgba(236, 107, 67, 0.05) !important;
}

/* --- Stay Connected Typography --- */
.stay-connected-heading {
    font-family: 'Quasimoda', sans-serif !important;
    font-weight: 800 !important;
    font-size: 40px !important; /* Mobile */
    letter-spacing: 0.05em !important; /* 5% letter spacing */
    line-height: 1.1 !important;
    text-transform: none; /* Adjust if you want uppercase */
}

@media (min-width: 768px) {
    .stay-connected-heading {
        font-size: 55px !important; /* Desktop */
    }
}

/* --- Section Spacing Fix --- */
.section-tight-top {
    padding-top: 2rem !important; /* Reduces the large gap above the section */
}

/* Custom CF7 Field Styling */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 12px !important; /* Matches brand */
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
}

.wpcf7-submit {
    background-color: #EC6B43 !important; /* Brand Orange */
    color: white !important;
    font-weight: bold !important;
    text-transform: uppercase;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.wpcf7-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}