/*
Theme Name: DB Shores Beach Condo
Theme URI: https://dbshoresbeachcondo.com
Author: CityMind / Lamar Brantley
Description: Editorial coastal WordPress theme for a Daytona Beach Shores oceanfront vacation condo.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: db-shores
*/

:root {
  --dbs-ink: #102a3a;
  --dbs-navy: #0a3348;
  --dbs-ocean: #087f8c;
  --dbs-sea: #5bbbc3;
  --dbs-sky: #dff4f3;
  --dbs-coral: #f27d64;
  --dbs-sun: #f3bf78;
  --dbs-sand: #f7f1e7;
  --dbs-white: #fffefb;
  --dbs-muted: #5d6e75;
  --dbs-line: rgba(16, 42, 58, .14);
  --dbs-shadow: 0 22px 60px rgba(10, 51, 72, .13);
  --dbs-radius: 1.35rem;
  --dbs-serif: "Cormorant Garamond", Georgia, serif;
  --dbs-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dbs-ink);
  background: var(--dbs-white);
  font-family: var(--dbs-sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--dbs-ocean); text-underline-offset: .2em; }
a:hover { color: var(--dbs-coral); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 10000; left: 1rem; top: 1rem; background: #fff; padding: .75rem 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 254, 251, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 42, 58, .09);
}
.header-inner {
  width: min(1280px, calc(100% - 3rem)); margin: auto; min-height: 78px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--dbs-ink); text-decoration: none; }
.site-brand svg { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--dbs-serif); font-size: 1.45rem; font-weight: 700; }
.brand-copy span { margin-top: .3rem; color: var(--dbs-muted); font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 1.45rem; }
.primary-nav li { list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--dbs-ink); text-decoration: none; font-size: .9rem; font-weight: 700; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--dbs-ocean); }
.header-book, .dbs-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  border: 0; border-radius: 999px; padding: .78rem 1.35rem;
  background: var(--dbs-coral); color: #fff !important; text-decoration: none;
  font-weight: 800; line-height: 1.1; box-shadow: 0 10px 24px rgba(242,125,100,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-book:hover, .dbs-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); background: #df6852; box-shadow: 0 14px 28px rgba(242,125,100,.33); }
.menu-toggle { display: none; background: none; border: 0; color: var(--dbs-ink); font-size: 1.5rem; }

.site-main { overflow: clip; }
.entry-content > * { width: min(1120px, calc(100% - 3rem)); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(1280px, calc(100% - 3rem)); max-width: none; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.dbs-section > .alignwide,
.dbs-inner-hero > .alignwide { width: min(1280px, calc(100% - 3rem)); margin-left: auto; margin-right: auto; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content > .wp-block-group { margin-top: 0; }

h1, h2, h3, h4 { color: var(--dbs-ink); font-family: var(--dbs-serif); line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7vw, 7.3rem); font-weight: 600; letter-spacing: -.045em; }
h2 { font-size: clamp(2.65rem, 5vw, 5rem); font-weight: 600; letter-spacing: -.035em; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
p { text-wrap: pretty; }

.dbs-eyebrow { color: var(--dbs-ocean); font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.dbs-lede { color: var(--dbs-muted); font-size: clamp(1.12rem, 1.8vw, 1.4rem); line-height: 1.55; }
.dbs-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.dbs-section--sand { background: var(--dbs-sand); }
.dbs-section--sky { background: var(--dbs-sky); }
.dbs-section--navy { background: var(--dbs-navy); color: #fff; }
.dbs-section--navy h2, .dbs-section--navy h3, .dbs-section--navy p, .dbs-section--navy a:not(.wp-block-button__link) { color: #fff; }

.dbs-hero {
  position: relative; min-height: min(860px, calc(100vh - 78px)); display: grid; align-items: end;
  background: var(--dbs-navy); color: #fff;
}
.dbs-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,25,38,.82) 0%, rgba(5,25,38,.48) 48%, rgba(5,25,38,.08) 78%), linear-gradient(0deg, rgba(5,25,38,.42), transparent 50%); z-index: 1; }
.dbs-hero .wp-block-cover__background { display: none; }
.dbs-hero .wp-block-cover__inner-container { position: relative; z-index: 2; width: min(1280px, calc(100% - 3rem)); margin: auto; padding: 7rem 0 5rem; }
.dbs-hero h1 { max-width: 870px; margin: .5rem 0 1.4rem; color: #fff; }
.dbs-hero .dbs-lede { max-width: 650px; color: rgba(255,255,255,.88); }
.dbs-hero .dbs-eyebrow { color: #9ee2df; }
.dbs-hero .wp-block-buttons { margin-top: 2rem; }
.dbs-hero .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }

.dbs-quickfacts { position: relative; z-index: 5; margin-top: -2.2rem !important; }
.dbs-quickfacts .wp-block-column { min-height: 120px; display: grid; place-content: center; padding: 1.2rem; background: #fff; border-right: 1px solid var(--dbs-line); box-shadow: var(--dbs-shadow); }
.dbs-quickfacts .wp-block-column:first-child { border-radius: 1.2rem 0 0 1.2rem; }
.dbs-quickfacts .wp-block-column:last-child { border-radius: 0 1.2rem 1.2rem 0; border: 0; }
.dbs-quickfacts strong { display: block; font-family: var(--dbs-serif); font-size: 2rem; line-height: 1; }
.dbs-quickfacts span { display: block; margin-top: .4rem; color: var(--dbs-muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.dbs-editorial-split { align-items: center !important; gap: clamp(2.5rem, 7vw, 7rem); }
.dbs-editorial-split .wp-block-image img { border-radius: var(--dbs-radius); box-shadow: var(--dbs-shadow); }
.dbs-editorial-split .wp-block-image { position: relative; }
.dbs-editorial-split .wp-block-image::after { content: ""; position: absolute; width: 38%; height: 42%; right: -1rem; bottom: -1rem; border: 2px solid var(--dbs-coral); border-radius: 0 0 1.5rem 0; z-index: -1; }

.dbs-cards { gap: 1.4rem; }
.dbs-card { height: 100%; padding: 2rem; background: #fff; border: 1px solid var(--dbs-line); border-radius: var(--dbs-radius); box-shadow: 0 12px 35px rgba(10,51,72,.07); }
.dbs-card h3 { margin-top: .2rem; margin-bottom: .7rem; }
.dbs-card p:last-child { margin-bottom: 0; }
.dbs-card-icon { color: var(--dbs-coral); font-size: 1.8rem; }

.dbs-photo-band { min-height: 540px; }
.dbs-photo-band .wp-block-cover__inner-container { width: min(1120px, calc(100% - 3rem)); margin: auto; }
.dbs-photo-band h2 { max-width: 740px; color: #fff; }
.dbs-photo-band .dbs-eyebrow { color: #a9f0eb; }
.dbs-photo-band .dbs-lede { max-width: 800px; color: rgba(255,255,255,.94); }
.dbs-photo-band h2, .dbs-photo-band .dbs-lede { text-shadow: 0 2px 18px rgba(0,20,34,.5); }
.dbs-photo-band--lighthouse .wp-block-cover__image-background { object-position: center 42%; }
.dbs-photo-credit { margin-top: 2rem; color: rgba(255,255,255,.78); font-size: .75rem; }
.dbs-photo-credit a { color: #fff; text-underline-offset: .2em; }

.dbs-gallery { gap: 1rem !important; }
.dbs-gallery figure, .dbs-gallery img { border-radius: .7rem; }
.dbs-gallery img { transition: transform .3s ease, filter .3s ease; }
.dbs-gallery a:hover img { transform: scale(1.015); filter: saturate(1.08); }

.dbs-lightbox { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 2rem; background: rgba(3,19,29,.96); }
.dbs-lightbox.is-open { display: flex; }
.dbs-lightbox img { max-width: min(1280px, calc(100vw - 8rem)); max-height: calc(100vh - 6rem); object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.dbs-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; font-size: 1.7rem; }
.dbs-lightbox button:hover { background: var(--dbs-coral); }
.dbs-lightbox__close { top: 1.2rem; right: 1.2rem; }
.dbs-lightbox__prev { left: 1.2rem; top: 50%; }
.dbs-lightbox__next { right: 1.2rem; top: 50%; }
.dbs-lightbox__count { position: absolute; bottom: 1rem; color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .12em; }

.dbs-quote { padding: clamp(2.5rem, 5vw, 4.5rem); background: var(--dbs-navy); color: #fff; border-radius: 0 3rem 0 3rem; }
.dbs-quote p { color: #fff; font-family: var(--dbs-serif); font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.15; }
.dbs-quote cite { color: #9ee2df; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.dbs-guide-card { position: relative; overflow: hidden; min-height: 430px; display: flex; align-items: end; border-radius: var(--dbs-radius); background: var(--dbs-navy); box-shadow: var(--dbs-shadow); }
.dbs-guide-card .wp-block-cover__inner-container { padding: 2rem; }
.dbs-guide-card h3, .dbs-guide-card p, .dbs-guide-card a { color: #fff; }
.dbs-guide-card a { font-weight: 800; text-decoration-thickness: 2px; }

.dbs-inner-hero { padding: clamp(5.5rem, 10vw, 9rem) 0; background: linear-gradient(135deg, var(--dbs-navy), #0d6470); color: #fff; }
.dbs-inner-hero h1 { max-width: 1000px; margin: .5rem 0 1.25rem; color: #fff; }
.dbs-inner-hero .dbs-eyebrow { color: #9ee2df; }
.dbs-inner-hero .dbs-lede { max-width: 760px; color: rgba(255,255,255,.85); }

.dbs-article { padding: 4.5rem 0 8rem; }
.dbs-article > *:not(.alignwide):not(.alignfull) { max-width: 790px; }
.dbs-article h2 { margin-top: 4rem; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.dbs-article h3 { margin-top: 2.5rem; }
.dbs-article .wp-block-image img { border-radius: var(--dbs-radius); }
.dbs-destination-photo { margin-top: 2.25rem; margin-bottom: 2.25rem; }
.dbs-destination-photo img { width: 100%; max-height: 620px; object-fit: cover; box-shadow: var(--dbs-shadow); }
.dbs-destination-photo--portrait img { width: min(100%, 620px); max-height: none; }
.dbs-destination-photo figcaption { margin: .8rem .25rem 0; color: var(--dbs-muted); font-size: .78rem; line-height: 1.55; }
.dbs-tip { padding: 1.7rem 2rem; background: var(--dbs-sky); border-left: 5px solid var(--dbs-ocean); border-radius: 0 .8rem .8rem 0; }
.dbs-related { padding: 2rem; background: var(--dbs-sand); border-radius: var(--dbs-radius); }

.dbs-booking-panel { padding: clamp(2.5rem, 6vw, 5rem); background: linear-gradient(135deg, var(--dbs-coral), #ef9a72); border-radius: 0 3rem 0 3rem; color: #fff; }
.dbs-booking-panel h2, .dbs-booking-panel p { color: #fff; }
.dbs-booking-panel .wp-block-button__link { background: var(--dbs-navy); box-shadow: none; }
.dbs-channel-buttons { gap: .8rem; }
.dbs-channel-buttons .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid currentColor; color: var(--dbs-navy) !important; box-shadow: none; }

.dbs-faq details { border-top: 1px solid var(--dbs-line); padding: 1.25rem 0; }
.dbs-faq summary { cursor: pointer; color: var(--dbs-ink); font-family: var(--dbs-serif); font-size: 1.55rem; font-weight: 700; }

.site-footer { background: #071f2d; color: rgba(255,255,255,.75); padding: 5rem 0 7rem; }
.footer-inner { width: min(1280px, calc(100% - 3rem)); margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { margin: 0 0 1rem; font-size: 2.3rem; }
.site-footer h3 { font-family: var(--dbs-sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #9ee2df; }
.footer-links { display: grid; gap: .65rem; }
.footer-meta { width: min(1280px, calc(100% - 3rem)); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.sticky-book { display: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 1.5rem; background: #fff; box-shadow: var(--dbs-shadow); flex-direction: column; align-items: stretch; }
  .primary-nav.is-open { display: flex; }
  .header-book { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  body.admin-bar .site-header { top: 46px; }
  .header-inner, .entry-content > *, .entry-content > .alignwide, .dbs-hero .wp-block-cover__inner-container, .dbs-section > .alignwide, .dbs-inner-hero > .alignwide, .footer-inner, .footer-meta { width: min(100% - 2rem, 1280px); }
  .brand-copy strong { font-size: 1.2rem; }
  .brand-copy span { display: none; }
  .dbs-hero { min-height: 720px; }
  .dbs-hero::before { background: linear-gradient(0deg, rgba(5,25,38,.88) 0%, rgba(5,25,38,.48) 66%, rgba(5,25,38,.12) 100%); }
  .dbs-hero .wp-block-cover__inner-container { padding-bottom: 4.5rem; }
  .dbs-quickfacts { margin-top: 1rem !important; gap: .65rem !important; }
  .dbs-quickfacts .wp-block-column { min-height: 100px; border: 0; border-radius: .8rem !important; box-shadow: 0 8px 24px rgba(10,51,72,.1); }
  .dbs-quickfacts strong { font-size: 1.55rem; }
  .dbs-section { padding: 4.5rem 0; }
  .dbs-editorial-split { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-inner > :first-child { grid-column: auto; }
  .footer-meta { flex-direction: column; padding-bottom: 4rem; }
  .sticky-book { display: flex; position: fixed; z-index: 999; left: 1rem; right: 1rem; bottom: 1rem; min-height: 54px; border-radius: 999px; background: var(--dbs-coral); color: #fff; align-items: center; justify-content: center; text-decoration: none; font-weight: 900; box-shadow: 0 16px 36px rgba(10,51,72,.3); }
  .dbs-lightbox { padding: 1rem; }
  .dbs-lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 7rem); }
  .dbs-lightbox__prev { left: .6rem; }
  .dbs-lightbox__next { right: .6rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
