/* Template 3 - Esquire Barbershop CSS */
/* Based on Squarespace CSS from esquirebarberchicago.com */

/* ========================================
   NOTE: Booker CSS is now SEPARATE!

   This file contains ONLY Template 3 layout styles.
   Booker styles are in /common_includes/css/:
   - booker-vagaro.css (for vagaro style)
   - booker-classic.css (for classic style)

   These are loaded conditionally based on booker_style setting.
   ======================================== */

/* ========================================
   BASE STYLES
   ======================================== */
* { box-sizing: border-box; }
body {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
    font-weight: 300;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
/* Skip to Content link - hidden until focused */
.header-skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    z-index: 9999;
}
.header-skip-link:focus {
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 10px 20px;
}
.showOnMobile, .showOnDesktop { display: none; }

/* ========================================
   ANNOUNCEMENT BAR - Uses color system classes
   Add main_bc_color3 main_color3_text to HTML element
   ======================================== */
.t3-announcement {
    /* Background and text color come from main_bc_color3 main_color3_text classes */
    padding: 8px 40px 8px 15px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.t3-announcement.closed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.t3-announcement-content {
    flex: 1;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t3-announcement.expanded .t3-announcement-content {
    white-space: normal;
    overflow: visible;
}
.t3-announcement-text {
    /* Inherits ellipsis behavior from parent */
}
.t3-announcement strong {
    font-weight: 600;
    margin-right: 5px;
}
.t3-announcement-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    padding: 5px;
    line-height: 1;
}
.t3-announcement-close:hover {
    opacity: 1;
}

/* ========================================
   FIXED HEADER CONTAINER
   ======================================== */
.t3-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
.t3-main-content {
    padding-top: 0; /* Will be set by JS based on header height */
    position: relative;
}

/* Overlay container - covers ENTIRE main content (hero + logo) */
.t3-overlay-container {
    position: fixed;
    top: 120px; /* Initial value, JS will adjust based on header height */
    left: 0;
    right: 0;
    bottom: 0; /* Extend to bottom of viewport */
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
    pointer-events: none;
}

/* Overlay panels - white card
   CRITICAL: max-height and overflow-y are required for scrolling!
   The panel is inside a position:fixed container, so without these
   properties users cannot scroll to see content below the fold.
   DO NOT REMOVE max-height or overflow-y! */
.t3-overlay-panel {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    max-width: 1000px;
    width: 100%;
    max-height: calc(100vh - 140px); /* REQUIRED - limits panel to viewport height */
    overflow-y: auto; /* REQUIRED - enables scrolling inside fixed panel */
    pointer-events: auto;
}

/* Booking panel - taller min height */
#t3-view-booking {
    min-height: 500px;
}

/* Classic booker inside T3 overlay - fill the panel */
#t3-view-booking #appointments {
    display: block !important;
    width: 100% !important;
}
/* Override Bootstrap fixed .container widths at all breakpoints */
#t3-view-booking .container {
    width: 100%;
    max-width: 100%;
}

/* ========================================
   HEADER WRAPPER
   ======================================== */
.header-announcement-bar-wrapper {
    position: relative;
    z-index: 1000;
    background: #fff;
    width: 100%;
    padding: 20px 40px;
    pointer-events: auto;
}
.header-border, .header-dropshadow {
    visibility: hidden;
}
.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: -1;
}

/* ========================================
   DESKTOP / MOBILE DISPLAY
   ======================================== */
.header-display-desktop {
    position: relative;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
}
.header-display-mobile {
    display: none;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
}

/* ========================================
   TITLE NAV WRAPPER - BRANDING CENTER LAYOUT
   ======================================== */
.header-title-nav-wrapper {
    display: flex;
    flex-wrap: nowrap;
    flex: 1 0 67%;
    align-items: center;
}
.header-layout-branding-center .header-title {
    width: 34%;
    text-align: center;
    flex: 1 1 34%;
}
.header-layout-branding-center .header-nav {
    width: 33%;
    flex: 1 1 33%;
}
.header-layout-branding-center .header-actions {
    width: 33%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.header-nav {
    flex-grow: 1;
    flex-shrink: 1;
}
.header-nav-wrapper {
    display: inline-flex;
}
.header-nav-list {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav-item {
    margin-left: .35vw;
    margin-right: .35vw;
}
.header-nav-item:not(:last-child) {
    margin-right: .7vw;
}
.header-nav-item a,
.header-nav-item button {
    display: inline-flex;
    align-items: center;
}
.header-nav-item a {
    text-decoration: none;
    color: #222;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    line-height: 1;
    transition: color 0.2s;
    white-space: nowrap;
}
.header-nav-item a:hover {
    color: #767676;
}
.header-nav-item a {
    position: relative;
    padding-bottom: 4px;
}
.header-nav-item--active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #222;
}

/* ========================================
   LOGO / TITLE - Squarespace Style
   ======================================== */
.header-title {
    flex-grow: 0;
    flex-shrink: 0;
    backface-visibility: hidden;
}
.header-title-logo {
    width: auto;
    font-size: 0;
}
.header-title-logo a {
    display: inline-block;
    max-width: 100%;
    max-height: 107px;
}
.header-title-logo img {
    width: auto;
    max-width: 100%;
    max-height: 107px;
}
.header-mobile-logo {
    display: none;
}
.header-mobile-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* ========================================
   ACTIONS (RIGHT SIDE)
   ======================================== */
.header-actions {
    flex-grow: 0;
    flex-shrink: 1;
    display: inline-flex;
    align-items: center;
}
.header-actions--right {
    justify-content: flex-end;
}
.header-actions-action {
    margin: 0 0 0 2.2vw;
}
.header-actions-action--social {
    display: flex;
    margin: 0;
}
.header-actions-action--cta {
    white-space: nowrap;
}

/* ========================================
   SOCIAL ICONS - Squarespace Style
   ======================================== */
.icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    box-sizing: content-box;
    line-height: 1;
}
.header-actions-action--social {
    gap: 8px;
}
.icon--fill svg {
    fill: currentColor;
}
.icon svg {
    width: 100%;
    height: 100%;
}
.header-icon {
    color: #222;
}
.header-icon:hover {
    color: #767676;
}

/* ========================================
   CTA BUTTON - Uses color system classes
   Add main_color3_text main_border_color3 to button HTML for outline style
   Add main_bc_color3 main_color3_text for filled style
   ======================================== */
.header-actions-action--cta .btn,
.btn.btn--border {
    position: relative !important;
    display: inline-block !important;
    line-height: 1.38em !important;
    padding: .96rem 1.6032rem !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: .95rem !important;
    text-transform: none !important;
    letter-spacing: 0em !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: .1s opacity linear !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    border-width: 2px !important;
    border-style: solid !important;
}
/* Header CTA Button - uses main_bc_color3_as_border, main_bc_color3_as_text */
/* Hover: main_bc_color3 background, main_color3_text (white) */
.header-actions-action--cta .btn,
.header-actions-action--cta .btn.btn--border {
    background: transparent !important;
    transition: .1s background-color linear, .1s color linear !important;
}
.header-actions-action--cta .btn:hover {
    background: #451011 !important;
    color: #fff !important;
}

/* About Section / Footer CTA Button - Filled style */
.t3-about-cta .btn,
.btn.btn--border.theme-btn--primary-inverse {
    /* Background and text come from main_bc_color1 main_color1_text classes */
}
.t3-about-cta .btn:hover,
.btn.btn--border.theme-btn--primary-inverse:hover {
    opacity: 0.8 !important;
}

/* ========================================
   BURGER MENU
   ======================================== */
.header-burger {
    display: none;
    align-items: center;
    justify-content: center;
}
.header-burger-btn {
    background: rgba(0,0,0,0.05);
    border: 2px solid;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.burger-box {
    width: 24px;
    height: 18px;
    position: relative;
}
.burger-inner {
    width: 100%;
    height: 100%;
    position: relative;
}
.top-bun, .patty, .bottom-bun {
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    /* Color comes from main_bc_color1 class */
}
.top-bun { top: 0; }
.patty { top: 50%; transform: translateY(-50%); }
.bottom-bun { bottom: 0; }

/* ========================================
   MOBILE NAV LINK
   ======================================== */
.mobile-nav-link {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}
.mobile-nav-link:hover {
    color: #767676;
}

/* ========================================
   HERO SECTION - Squarespace Style
   ======================================== */
.page-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.page-section.full-bleed-section {
    padding: 0;
}
.page-section.section-height--large {
    min-height: 85vh;
}
.page-section.section-height--small,
.page-section.user-items-list-section {
    min-height: 50vh;
}
.section-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.section-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    pointer-events: none;
}
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding: 4vw;
}
.content {
    max-width: 1500px;
    width: 100%;
}

/* ========================================
   ABOUT SECTION - Overlay on Logo Background
   ======================================== */
.list-section-title {
    text-align: center;
}
.list-section-title p {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.user-items-list-section .content-wrapper {
    padding: 80px 4vw;
}
.user-items-list-section .content {
    max-width: 1400px;
    margin: 0 auto;
}
.t3-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}
.t3-about-item h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #000;
    font-weight: 400;
}
.t3-about-item p {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    font-weight: 300;
}
.t3-about-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   SERVICES SECTION - Template 3 (Esquire Style)
   ======================================== */
.t3-services-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.t3-services-left {
    width: 50%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.t3-services-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: #000;
    margin-bottom: 30px;
}
.t3-services-left p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}
.t3-services-right {
    width: 50%;
    padding: 80px 60px;
}
.t3-services-list {
    max-width: 500px;
}
.t3-service-item {
    text-align: left;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}
.t3-service-item:first-child {
    padding-top: 0;
}
.t3-service-item:last-child {
    border-bottom: none;
}
.t3-service-price {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
}
.t3-service-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
    text-transform: lowercase;
}
.t3-service-duration {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-bottom: 12px;
}
.t3-service-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}
@media (max-width: 900px) {
    .t3-services-container {
        flex-direction: column;
    }
    .t3-services-left,
    .t3-services-right {
        width: 100%;
        padding: 60px 30px;
    }
}

/* ========================================
   ABOUT PAGE - Squarespace Style
   ======================================== */
.sqs-layout.sqs-grid-12 {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 4vw;
}
.sqs-row {
    display: flex;
    flex-wrap: wrap;
}
.sqs-col-12.span-12 {
    width: 100%;
}
.sqs-block-html {
    margin-bottom: 0;
}
.sqs-block-content {
    padding: 0;
}
.sqs-html-content {
    text-align: center;
}
.sqs-html-content h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.3;
    text-transform: none;
}
.sqs-html-content p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}
.sqs-html-content p:last-child {
    margin-bottom: 0;
}
.spacer-block.vsize-1 {
    height: 60px;
}

/* ========================================
   FAQ SECTION - Template 3
   ======================================== */
.t3-faq-list {
    max-width: 900px;
    margin: 0 auto;
}
.t3-faq-item {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}
.t3-faq-item:last-child {
    border-bottom: none;
}
.t3-faq-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 400;
}
.t3-faq-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    font-weight: 300;
}

/* ========================================
   FOOTER SECTION - Squarespace Style
   ======================================== */
.t3-footer {
    background: #fff;
    padding: 40px 4vw 20px;
    border-top: 1px solid #eee;
}
.t3-footer .content-wrapper {
    padding: 0;
}
.t3-footer .content {
    max-width: 1400px;
    margin: 0 auto;
}
/* Squarespace Grid System */
.sqs-layout.sqs-grid-12 {
    width: 100%;
}
.sqs-row {
    display: flex;
    flex-wrap: wrap;
}
.sqs-col-4.span-4 {
    width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}
.sqs-block-content {
    width: 100%;
}
.sqs-html-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    letter-spacing: 0;
    margin-bottom: 20px;
    color: #000;
    font-weight: 600;
}
.sqs-html-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 300;
}
.sqs-html-content p.sqsrte-small {
    font-size: 13px;
}
.sqs-html-content a {
    color: #333;
    text-decoration: none;
}
.sqs-html-content a:hover {
    color: #000;
}
.sqs-html-content em {
    font-style: italic;
    color: #999;
    font-size: 12px;
}

/* ========================================
   MOBILE WIDGET BAR (Email, Phone, Hours, Map)
   ======================================== */
.t3-mobile-widget-bar {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
}
.t3-widget-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.t3-widget-btn:active {
    background: #f0f0f0;
}

/* Full Screen Overlays */
.t3-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.t3-widget-overlay-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 350px;
    position: relative;
}
.t3-overlay-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}
.t3-widget-overlay-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.t3-widget-overlay-content p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #666;
}
.t3-overlay-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.t3-hours-list {
    text-align: left;
}
.t3-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.t3-hours-row:last-child {
    border-bottom: none;
}
/* Full screen map overlay */
.t3-map-overlay {
    flex-direction: column;
    background: #fff;
}
.t3-map-overlay.active {
    display: flex;
}
.t3-map-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    background: #fff;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.t3-map-container {
    flex: 1;
    width: 100%;
}
.t3-map-container iframe {
    width: 100%;
    height: 100%;
}
.t3-map-footer {
    padding: 15px 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}
.t3-map-footer p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .header-announcement-bar-wrapper {
        padding: 15px 30px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 799px) {
    .header-display-desktop { display: none; }
    .header-display-mobile { display: flex; }
    .header-burger { display: flex; }
    .header-nav { display: none; }
    .header-title { flex-grow: 1; }
    .header-mobile-logo { display: block; }
    .header-title-logo { display: none; }
    .header-actions-action--cta { display: none; }
    /* Show mobile widget bar */
    .t3-mobile-widget-bar { display: flex; }
    /* Add padding to footer so content isn't hidden behind widget bar */
    .t3-footer { padding-bottom: 60px; }
}

@media (max-width: 900px) {
    .user-items-list-section .content-wrapper {
        padding: 40px 20px;
    }
    .user-items-list-section .content {
        width: 70%;
        margin: 0 auto;
    }
    .t3-about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .t3-about-item {
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        padding: 0 !important;
    }
    .t3-about-item h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .t3-about-item p {
        font-size: 13px;
        line-height: 1.6;
    }
    .t3-about-cta {
        margin-top: 30px;
    }
}

@media (max-width: 799px) {
    .sqs-col-4.span-4 {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }
    .sqs-row {
        flex-direction: column;
    }
    .t3-footer .content-wrapper {
        padding: 20px 20px 0;
    }
}
