/* ==========================================================================
   TapasTerra static pages: replaces Slider Revolution + Envira Gallery
   Loads after the theme's style.css
   ========================================================================== */

/* Header tweaks copied from the theme's inline <style> in header.php */
header {
    background-color: rgba(255, 255, 255, 0.7);
    height: 150px;
}
.top-contact {
    color: #000 !important;
    font-size: .6em;
    margin: 0;
    left: 7.5%;
    right: auto;
    top: 95px;
}
.full-logo {
    top: 12px;
    left: 5%;
    opacity: 1 !important;
}
.full-logo img { max-width: 80% !important; }
.hamburger { margin: 62px 5% 0 0; }
.hamburger__inner,
.hamburger__inner::after,
.hamburger__inner::before { background-color: rgba(0, 0, 0, .6); }

@media only screen and (max-width: 600px) {
    header { background-color: rgba(255, 255, 255, 0.9); height: 130px; }
    .top-contact { top: 83px; right: auto; left: 7.5%; }
    .full-logo img { max-width: auto !important; width: 200px !important; }
    .hamburger { margin: 40px 5% 0 0; }
    .full-logo { top: 10px; left: 5%; margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Hero slideshow (.tt-hero)
   -------------------------------------------------------------------------- */
.tt-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 1080px;
    overflow: hidden;
    background: #000;
}
.tt-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease-in-out, transform 7s linear;
    will-change: opacity, transform;
}
.tt-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.tt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.65) 100%);
    pointer-events: none;
}
.tt-hero-buttons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    z-index: 2;
}
.tt-hero-btn {
    display: inline-block;
    padding: 10px 34px;
    border: 2px solid #fff;
    color: #fff !important;
    font-family: Figtree, sans-serif;
    font-size: .7em;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none !important;
    background: rgba(0,0,0,.35);
    transition: background .3s, color .3s;
}
.tt-hero-btn:hover {
    background: #fff;
    color: #000 !important;
    border-color: #fff !important;
}
.tt-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5%;
    text-align: center;
    z-index: 2;
}
.tt-dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.tt-dot.is-active { background: #fff; }

.home-header.tt-no-hero { height: 150px; }

@media only screen and (max-width: 600px) {
    .tt-hero { height: 70vh; min-height: 420px; }
    .tt-hero-buttons { bottom: 15%; gap: 10px; }
    .tt-hero-btn { padding: 8px 20px; font-size: .6em; }
}

/* --------------------------------------------------------------------------
   Gallery (.tt-gallery)
   -------------------------------------------------------------------------- */
.tt-gallery {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left;
}
.tt-gallery .tt-item {
    display: block;
    overflow: hidden;
    border: 0 !important;
    background: #111;
}
.tt-gallery .tt-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, opacity .6s ease;
}
.tt-gallery .tt-item:hover img { transform: scale(1.04); opacity: .85; }

/* grid: uniform squares (homepage, 4 columns) */
.tt-layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.tt-layout-grid .tt-item { aspect-ratio: 1 / 1; }

/* mason: CSS columns (gallery page, 3 columns) */
.tt-layout-mason { column-count: 3; column-gap: 10px; }
.tt-layout-mason .tt-item { margin-bottom: 10px; break-inside: avoid; }
.tt-layout-mason .tt-item img { height: auto; }

@media only screen and (max-width: 900px) {
    .tt-layout-grid { grid-template-columns: repeat(3, 1fr); }
    .tt-layout-mason { column-count: 2; }
}
@media only screen and (max-width: 600px) {
    .tt-layout-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .tt-layout-mason { column-count: 2; column-gap: 6px; }
    .tt-layout-mason .tt-item { margin-bottom: 6px; }
}

/* --------------------------------------------------------------------------
   Lightbox (.tt-lb)
   -------------------------------------------------------------------------- */
.tt-lb {
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* above the theme's fixed header */
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.94);
}
.tt-lb.is-open { display: flex; }
.tt-lb img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
    animation: tt-fade .35s ease;
}
@keyframes tt-fade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.tt-lb button {
    position: absolute;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: Figtree, sans-serif;
    font-size: 2.4em;
    line-height: 1;
    cursor: pointer;
    padding: 20px;
    opacity: .8;
}
.tt-lb button:hover { opacity: 1; }
.tt-lb .tt-lb-close { top: 10px; right: 14px; }
.tt-lb .tt-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.tt-lb .tt-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.tt-lb .tt-lb-count {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: .6em;
    letter-spacing: .1em;
}
body.tt-lb-open { overflow: hidden; }

/* footer address line */
.tt-address { font-size: .8em; opacity: .85; }

/* ==========================================================================
   Design refresh: Jost (Google Fonts), lighter type, new components
   ========================================================================== */
body,
.global-title,
.global-title.main-title,
.button-main,
.navigation__list a,
.top-contact,
.footer_content,
.tt-hero-btn,
.tt-lb button {
    font-family: 'Jost', 'Figtree', sans-serif !important;
}
body {
    font-weight: 300;
    font-size: 1.35em;
    line-height: 175% !important;
    letter-spacing: .02em;
}
strong { font-weight: 500; }
.global-title.main-title {
    font-weight: 300;
    font-size: 2.4em;
    letter-spacing: .02em;
    line-height: 115%;
}
.global-title.footer-form-title {
    font-weight: 300;
    letter-spacing: .12em;
}
.tt-section-title {
    font-family: 'Jost', sans-serif !important;
    font-weight: 300;
    font-size: 1.6em;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 auto 35px;
    text-align: center;
}
.copy-wrapper p { line-height: 175%; font-weight: 300; }
.navigation__list a { font-weight: 300 !important; letter-spacing: .12em; }
.top-contact { font-weight: 400; letter-spacing: .08em; }

/* outline button used across pages */
.tt-btn-outline,
.button-main.tt-btn-outline {
    display: inline-block;
    padding: 10px 40px !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    font-size: .75em;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none !important;
    background: transparent;
    transition: background .3s, color .3s;
}
.tt-btn-outline:hover,
.button-main.tt-btn-outline:hover { background: #fff; color: #000 !important; }
.tt-more { margin: 40px auto 20px; text-align: center; }

/* hero text */
.tt-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24%;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.tt-hero-headline {
    margin: 0 0 10px;
    font-weight: 300;
    font-size: 1.6em;
    letter-spacing: .32em;
    text-transform: uppercase;
    line-height: 120%;
}
.tt-hero-note {
    margin: 0;
    font-weight: 300;
    font-size: .95em;
    letter-spacing: .06em;
    line-height: 150%;
}
.tt-hh-label {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 14px;
    border: 1px solid rgba(255,255,255,.8);
    font-weight: 400;
    font-size: .8em;
    letter-spacing: .2em;
    text-transform: uppercase;
    vertical-align: middle;
}
.tt-hero-btn { font-size: .62em; font-weight: 400; background: rgba(0,0,0,.25); border-width: 1px; }
@media only screen and (max-width: 600px) {
    .tt-hero-text { bottom: 34%; }
    .tt-hero-headline { font-size: 1.1em; letter-spacing: .22em; }
    .tt-hero-note { font-size: .8em; }
    .tt-hh-label { display: block; margin: 0 auto 8px; width: max-content; }
    .global-title.main-title { font-size: 1.8em; }
}

/* About: image + copy split */
.tt-split {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 90%;
    max-width: 1100px;
    margin: 60px auto 20px;
    text-align: left;
}
.tt-split-img { flex: 0 0 38%; display: block; overflow: hidden; border: 0 !important; }
.tt-split-img img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.tt-split-img:hover img { transform: scale(1.03); }
.tt-split-copy { flex: 1; }
.tt-split-copy .tt-section-title { text-align: left; margin-bottom: 20px; }
.tt-split-copy p { text-align: left; line-height: 175%; }
.tt-split-copy .tt-more { text-align: left; margin-top: 25px; }
.tt-split-copy a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tt-split-copy a.tt-btn-outline { text-decoration: none !important; }
@media only screen and (max-width: 800px) {
    .tt-split { flex-direction: column; gap: 30px; }
    .tt-split-img { flex-basis: auto; width: 100%; max-width: 420px; }
    .tt-split-copy .tt-section-title, .tt-split-copy p, .tt-split-copy .tt-more { text-align: center; }
}

/* footer extras */
.tt-hours { margin: 10px 0 17px; }
.tt-hours p { margin: 0 0 4px; font-size: .8em; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; }
.tt-hours .tt-hours-title { font-weight: 500; letter-spacing: .14em; margin-bottom: 8px; }
.tt-hours p span { display: inline-block; min-width: 190px; text-align: right; margin-right: 12px; opacity: .8; }
@media only screen and (max-width: 600px) {
    .tt-hours p span { display: block; min-width: 0; text-align: center; margin: 0; }
}
.tt-hh { font-size: .8em; letter-spacing: .1em; text-transform: uppercase; margin-top: 10px; }
.tt-social { margin: 25px auto 10px; }
.tt-social a {
    display: inline-block;
    margin: 0 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    color: #fff !important;
    line-height: 0;
    transition: background .3s, color .3s;
}
.tt-social a:hover { background: #fff; color: #000 !important; border-color: #fff !important; }
.tt-social svg { display: block; }
.tt-copy { font-size: .6em; opacity: .7; letter-spacing: .05em; margin-top: 20px; }
.tt-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* Instagram section */
.tt-instagram { width: 90%; max-width: 1200px; margin: 60px auto 30px; }
.tt-ig-handle { margin: -20px 0 25px; font-size: .9em; letter-spacing: .1em; }
.tt-ig-handle a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.tt-ig-feed:empty { display: none; }

/* Hamburger "X" when the navigation is open: white on the dark overlay */
.hamburger.hamburger--active .hamburger__inner::before,
.hamburger.hamburger--active .hamburger__inner::after {
    background-color: #fff !important;
}
/* the middle bar must disappear so the two rotated bars form an X */
.hamburger.hamburger--active .hamburger__inner {
    background-color: transparent !important;
}
