/* ===========================================================================
   Velvet Waves Studio — Site components
   ===========================================================================
   Layout and page components, in page order:

     1. Header (logo + navigation)
     2. Sections & shared utilities
     3. Home: photo gallery (justified grid + lightbox skin)
     4. Home: quote panel & FAQ accordion
     5. Service cards (home + packages)
     6. Stylists
     7. Hours / location / map
     8. Footer

   Brand colors and fonts come from theme.css (CSS variables).
   ======================================================================== */


/* ===========================================================================
   1. HEADER — logo + navigation
   ======================================================================== */

/* Centered logo, scales up with the viewport. */
.site-logo a { display: block; }
.site-logo img { max-width: 300px; }
@media only screen and (min-width: 641px)  { .site-logo img { max-width: 400px; } }
@media only screen and (min-width: 1024px) { .site-logo img { max-width: 600px; } }

/* --- Navigation bar ------------------------------------------------------
   A Foundation 5 top bar restyled for the brand: transparent background,
   120px tall on desktop, gold uppercase links centered across the page.
   On small screens Foundation swaps in the "Menu" toggle automatically.
--------------------------------------------------------------------------- */
.site-nav { overflow: visible; }
.site-nav .top-bar-wrapper { z-index: 1999; background: transparent; }
.site-nav .top-bar-wrapper .top-bar-section .dropdown { z-index: 1999; }

/* Transparent chrome — the wave photo shows through the bar. */
.site-nav .top-bar,
.site-nav .title-area,
.site-nav a:not(.button) { background: transparent; }
.site-nav a:not(.button) { text-decoration: none; }
.site-nav .top-bar .top-bar-section ul li { background: none !important; }

/* Gold link color; solid gold pill on hover and on the active page. */
.site-nav .top-bar-wrapper:not(.swatch) a:not(.button) { color: var(--vw-gold); }
.site-nav ul:not(.title-area) li:hover > a:not(.button) {
    background-color: var(--vw-gold);
    color: var(--vw-white);
}
.site-nav .top-bar-wrapper.styleActive li.active > a {
    background: var(--vw-gold);
    color: var(--vw-white);
}

/* Mobile menu icon — three gold bars (drawn with box-shadow). */
.site-nav .top-bar-wrapper:not(.swatch) .top-bar .toggle-topbar.menu-icon a span::after {
    box-shadow: 0 0 0 1px var(--vw-gold),
                0 7px 0 1px var(--vw-gold),
                0 14px 0 1px var(--vw-gold);
    height: 1px;
    background-color: var(--vw-gold);
}
.site-nav .top-bar.expanded .toggle-topbar a span { box-shadow: none; }
.site-nav .toggle-topbar a { font-size: 1.06rem; }
.site-nav .toggle-topbar.menu-icon { right: 15px; }

/* Bar height: 120px on desktop (auto when expanded on mobile). */
.site-nav .top-bar { height: 120px; line-height: 120px; }
.site-nav .top-bar.expanded { height: auto; line-height: inherit; }
.site-nav .top-bar .name { display: block; position: relative; height: 120px; padding: 0 15px; }
.site-nav .expanded:not(.top-bar) .top-bar-section { margin-top: 120px; }
.f-topbar-fixed { padding-top: 120px !important; }

/* Link metrics. */
.site-nav .top-bar-section ul li > a { padding-left: 15px; font-size: 1.06rem; }
.site-nav .top-bar-section .dropdown li { font-size: 1.06rem; }
.site-nav .top-bar-section .dropdown li a { padding: 8px 15px; }

/* Desktop layout (>= 40.063em): horizontal, centered menu. */
@media only screen and (min-width: 40.063em) {

    .contain-to-grid.matchPadding .top-bar { padding-left: 0.9375rem; padding-right: 0.9375rem; }
    .top-bar .title-area { margin-right: 1.1rem; }
    .top-bar { overflow: visible; }
    .top-bar:before, .top-bar:after { content: " "; display: table; }
    .top-bar:after { clear: both; }
    .top-bar .toggle-topbar { display: none; }
    .top-bar .title-area { float: left; }

    .top-bar-section { transition: none 0 0; left: 0 !important; }
    .top-bar-section ul { width: auto; height: auto !important; display: inline; }
    .top-bar-section ul li { float: left; }
    .top-bar-section ul li .js-generated { display: none; }

    /* 120px-tall links, vertically centered by line-height. */
    .site-nav .top-bar-section li:not(.has-form) a:not(.button) {
        padding: 0 15px;
        line-height: 120px;
    }

    /* Center the menu across the full bar width. */
    .site-nav .menu-align-centered ul.menu {
        display: block;
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
    .site-nav .menu-align-centered ul.menu > li {
        float: none;
        display: inline-block;
        vertical-align: top;
    }
}


/* ===========================================================================
   2. SECTIONS & SHARED UTILITIES
   ======================================================================== */

/* Vertical rhythm for content rows (padding sits on the .row). */
.row.section-pad       { padding-top: 2rem;  padding-bottom: 2rem; }  /* default   */
.row.section-pad-roomy { padding-top: 3rem;  padding-bottom: 3rem; }  /* FAQs page */
.row.section-pad-wide  { padding-top: 4rem;  padding-bottom: 4rem; }  /* home FAQ  */
.row.section-pad-flush { padding-top: 0;     padding-bottom: 0; }

/* Section title: gold display heading with generous space above. */
.section-heading { margin: 64px 0 32px; }

/* Heading at the top of a panel (about page) — no extra space above. */
.panel-heading { margin: 0 0 16px; }

/* Framed content blocks that float in the page column (about page, quote).
   "auto" keeps the row centered — Foundation centers rows with side
   margins, so a plain "64px 0" would pin the block to the left edge. */
.row.floating-block { margin: 64px auto; }

/* Decorative divider images between home-page sections. */
.divider-img { display: block; margin: 0 auto; }

/* Google Maps embed. */
.map-embed { display: block; text-align: center; }
.map-embed iframe { border: 0; width: 100%; height: 450px; }

/* Equal-height card rows (replaces the old matchHeight JS with flexbox).
   Scoped to the DIRECT child row only — nested rows inside the cards must
   keep normal block flow, or their content collapses onto one line. */
@media only screen and (min-width: 40.063em) {
    .match-height > .row { display: flex; }
    .match-height > .row:before, .match-height > .row:after { display: none; }
    .match-height > .row > .columns { display: flex; float: none; }
    .match-height > .row > .columns > * { width: 100%; }
}


/* ===========================================================================
   3. HOME — PHOTO GALLERY
   A flush CSS grid: three images per row on tablet/desktop, one per row on
   phones, no gutters. Each cell is a square crop (object-fit) and opens
   the full image in a lightGallery lightbox.
   ======================================================================== */
.vw-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 6 photos → 2 rows of 3 */
    gap: 0;                                   /* images sit flush       */
}
@media only screen and (max-width: 40em) {
    .vw-gallery { grid-template-columns: 1fr; }   /* stacked on phones  */
}

/* Each tile: square crop, image fills the cell. */
.vw-gallery .shutter-img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.vw-gallery .shutter-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Thumbnail hover: slow zoom ------------------------------------------ */
.vw-gallery .shutter-img img {
    transform: scale(1);
    backface-visibility: hidden;
    transition: transform 1s ease-out;
}
.vw-gallery .shutter-img:hover img {
    transform: scale(1.10);
    transition: transform 4.5s ease-out;
}


/* ===========================================================================
   4. HOME — QUOTE PANEL & FAQ ACCORDION
   ======================================================================== */

/* Client quote in a translucent charcoal panel. */
.quote-panel .fa-quote-left { color: var(--vw-white); }
.quote-panel blockquote {
    border: none;
    margin: 0;
    padding: 16px 0 0 16px;
    color: var(--vw-white);
    font-size: 1rem;
}
.quote-panel blockquote p,
.quote-panel blockquote footer { color: var(--vw-white); }

/* --- FAQ accordion (three teaser questions on the home page) ------------- */
.faq-accordion { width: 100%; margin: 0 auto; }
.faq-accordion ul.sb-list { padding: 0; margin: 0; list-style: none; }
.faq-accordion ul.sb-list li.sb-space { overflow: hidden; list-style: none; margin-top: 0; }

/* Question row: white heading that dims on hover / while open. */
.faq-accordion li.sb-space > a,
.faq-accordion li.sb-space > a .sb-header {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    color: var(--vw-white);
    position: relative;
    line-height: 2em;
    outline: none;
    transition: color 300ms ease;
}
.faq-accordion .sb-header { margin: 0; padding: 0; }
.faq-accordion li.sb-open > a .sb-header,
.faq-accordion li.sb-space > a:hover,
.faq-accordion li.sb-space > a:hover .sb-header { color: #e6e6e6; }

/* Arrow indicator: hidden until hover, flips when open. */
.faq-accordion li.sb-space > a span.sb-arrow {
    background: transparent url("../images/icon-accordion-arrow.png") no-repeat center center;
    text-indent: -9000px;
    width: 26px;
    height: 14px;
    position: absolute;
    top: 50%;
    margin-top: -7px;
    opacity: 0;
    backface-visibility: hidden;
    transition: all 0.2s ease-in-out;
    right: -26px;
}
.faq-accordion li.sb-space > a:hover span.sb-arrow { opacity: 1; right: 10px; }
.faq-accordion li.sb-open > a span.sb-arrow {
    transform: rotate(180deg);
    opacity: 1;
    right: 10px;
}

/* Answer body (revealed by site.js). */
.faq-accordion .sb-content { padding: 5px; }
.faq-accordion .sb-content p { color: var(--vw-white); }


/* ===========================================================================
   5. SERVICE CARDS (home + packages)
   Full-bleed photo tiles in 2-up rows, each with a dark veil and centered
   copy. Photos are set per-modifier so content editors can swap them here.
   ======================================================================== */
.service-card {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.service-card--ladies { background-image: url("../images/services/ladies-hair.jpg"); }
.service-card--mens   { background-image: url("../images/services/mens-grooming.jpg"); }
.service-card--nails  { background-image: url("../images/services/nails.jpg"); }
.service-card--makeup { background-image: url("../images/services/makeup.jpg"); }

/* Dark veil over the photo; big top/bottom padding gives the tile height. */
.service-card .panel.custom {
    background-color: var(--vw-panel-black);
    border-color: var(--vw-panel-black);
    padding-top: 150px;
    padding-bottom: 150px;
    height: 100%;               /* equal heights inside .match-height rows */
}


/* ===========================================================================
   6. STYLISTS
   Photo left / name right rows inside a charcoal panel.
   ======================================================================== */
.stylist-list > .row { padding-top: 2rem; padding-bottom: 0; }
.stylist-row > .row { padding-top: 1rem; padding-bottom: 1rem; }
.stylist-row .columns { margin-top: 1rem; margin-bottom: 1rem; }

.stylist-photo { display: block; margin: 0 auto; }

/* Push the name down beside the photo on medium+ screens only. */
@media only screen and (min-width: 40.063em) {
    .stylist-info { padding-top: 100px; }
}


/* ===========================================================================
   7. FAQS PAGE
   ======================================================================== */
.faq-page-heading { margin: 32px 0; }
.faq-item { margin-bottom: 2.5rem; }        /* breathing room between Q&As */
.faq-link, .faq-link:hover { color: var(--vw-white); }


/* ===========================================================================
   8. HOURS / LOCATION (booking + home)
   ======================================================================== */
.booking-buttons .btn-row { margin: 8px 0; }


/* ===========================================================================
   9. FOOTER
   ======================================================================== */
.footer-mission .row { padding-top: 1rem; padding-bottom: 2rem; }
.footer-mission-heading {
    margin: 16px 0;
    font-size: 36px;
    line-height: 42px;
}
.footer-mission p { color: var(--vw-white); }
.footer-heart { display: block; margin: 0 auto; max-width: 100px; }

.footer-panel { padding: 1.25rem; border-width: 0; margin-bottom: 0; }
.footer-logo a { display: block; }
.footer-logo img { max-width: 250px; }
.footer-logo { margin: 16px 0 32px; }
.footer-legal { margin-bottom: 0; }
.footer-social, .footer-social:hover { color: var(--vw-white); }


/* ===========================================================================
   10. MEMBERSHIP FLYER (packages)
   ======================================================================== */
.membership-flyer {
    display: block;
    margin: 0 auto;
    max-width: 640px;    /* readable at desktop, full-bleed of its column   */
    width: 100%;         /* scales down on phones                           */
}
