/* Coastal Roswell — shared styles (no CMS dependencies) */
:root {
  --accent: #549cc8;        /* site blue */
  --accent-dark: #3f84ad;
  --orange: #ff8f00;        /* "light accent" */
  --peach: #f9eee6;         /* "dark accent" */
  --sand: #f6f6e9;
  --ink: #000;
  --white: #fff;
  --radius: 15px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1600px;
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.15; font-weight: 700; color: var(--accent); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.25; color: var(--accent); }
h4 { font-size: 1.1rem; font-weight: 700; }
.lead { font-size: 1.15rem; }
.center { text-align: center; }
.accent { color: var(--accent); }
.sr-only { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 2em; border-radius: 10px; background: var(--accent); color: #fff;
  font: 500 1rem "Poppins", sans-serif; text-decoration: none; text-align: center; border: 2px solid var(--accent); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--light { background: #fff; color: var(--accent); border-color: #fff; }
.btn--light:hover { background: var(--peach); border-color: var(--peach); color: var(--accent-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.99); box-shadow: 0 0 30px rgba(0,0,0,.18); transition: transform .3s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 var(--gutter); min-height: var(--header-h); }
.logo img { height: 70px; width: auto; }
.logo--desktop { display: none; }
.nav-wrap { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 500; color: var(--ink); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current] { border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.social { display: flex; gap: .4rem; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); transition: .2s; }
.social a:hover { background: var(--ink); color: #fff; }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); }
.burger span, .burger span::before { display: block; width: 28px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s; }
.burger span { top: -4px; }
.burger span::before { content: ""; position: absolute; top: 9px; left: 0; }
.burger[aria-expanded="true"] span { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span::before { transform: translateY(-9px) rotate(-90deg); top: 9px; }
@media (min-width: 800px) {
  .logo--desktop { display: block; } .logo--mobile { display: none; }
  .logo img { height: 117px; max-height: calc(var(--header-h) + 20px); }
}
@media (max-width: 899px) {
  .burger { display: block; }
  .nav-wrap { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; justify-content: center; gap: 2rem; background: #fff; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; margin: 0; padding: 2rem; }
  .nav-wrap.is-open { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: center; gap: 1.2rem; font-size: 1.6rem; }
  .header-actions { flex-direction: column; }
}

/* Sections */
.section { position: relative; overflow: hidden; }
.section__inner {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--gutter);
  display: grid; gap: clamp(24px, 4vw, 56px); align-items: center;
}
@media (min-width: 800px) { .section__inner { grid-template-columns: 1fr 1fr; } }
.section__inner--one { grid-template-columns: 1fr !important; }
.section--tight .section__inner { padding-top: 0; }
.theme-white { background: #fff; }
.theme-bright { background: var(--accent); color: #fff; }
.theme-bright h1, .theme-bright h2, .theme-bright h3, .theme-bright h4, .theme-bright a:not(.btn) { color: #fff; }
@media (min-width: 800px) { .split--rev > :first-child { order: 2; } }

.media { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 800px) { .media--tall { aspect-ratio: 1 / 1; } }

/* Hero (image background + coloured overlay) */
.hero { background: #888; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--overlay, rgba(255,255,255,.6)); }
.hero .section__inner { min-height: 60vh; }
.hero--banner .section__inner { min-height: 0; padding-block: clamp(36px, 5vw, 72px); }
.hero--banner h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.on-dark, .on-dark h3, .on-dark h2 { color: #fff; }
.hero__text p { max-width: 62ch; }

/* Offset backing card behind framed images */
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; background: var(--orange); border-radius: var(--radius); }
.frame--white::before { background: #fff; }
.frame .media { position: relative; }

/* Orange card with white text */
.hero__card { background: var(--orange); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); }
.hero__card h2, .hero__card h3 { color: #fff; }
.hero--card .section__inner { align-items: center; }

/* Menu tabs */
.tabs .tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tab { font: 500 1rem "Poppins", sans-serif; padding: .55em 1.3em; border-radius: 999px; border: 2px solid var(--accent); background: #fff; color: var(--accent); cursor: pointer; }
.tab[aria-selected="true"], .tab:hover { background: var(--accent); color: #fff; }
.print-title { display: none; }
.js .tabpanel[hidden] { display: none; }
.menu-items { list-style: none; padding: 0; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 800px) { .menu-items { grid-template-columns: 1fr 1fr; } }
.menu-item p { margin: 0; color: #333; }
.menu-item__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px dotted #bbb; margin-bottom: .2rem; }
.menu-item h4 { margin: 0; text-transform: none; }
.price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.menu-item small { display: block; color: #555; }
.menu-note { font-style: italic; color: #444; }
.tabpanel h3 { margin-top: 1.5rem; }
.js .tabpanel > .print-title { display: none; }

/* Cocktails */
.cocktails { list-style: none; padding: 0; display: grid; gap: 1.5rem 3rem; max-width: 1000px; margin: 1rem auto 0; }
@media (min-width: 800px) { .cocktails { grid-template-columns: 1fr 1fr; } }
.cocktails h4 { color: var(--accent); margin: 0; font-size: 1.25rem; }
.cocktails p { margin: 0; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery li { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Rooms */
.rooms { display: grid; gap: clamp(32px, 5vw, 72px); }
.room { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .room { grid-template-columns: 1fr 1fr; } .room--rev .media { order: 2; } }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.inquiry { width: 100%; height: 800px; border: 0; background: #fff; border-radius: var(--radius); margin-top: 2rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; margin-bottom: .3rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form label { display: grid; gap: .3rem; font-size: .95rem; }
.form input, .form select, .form textarea, .newsletter input[type="email"] {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #333; border-radius: 0;
}
.thanks { display: none; }
.thanks:target { display: block; font-weight: 700; }

/* Events */
.notice { text-align: center; color: var(--accent); }
.cards { list-style: none; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.card__img { aspect-ratio: 1; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.2rem; }
.card h3 { color: var(--accent); font-size: 1.1rem; margin-bottom: .2rem; }
.meta { color: #555; font-size: .9rem; margin: 0; }
.eventlist { list-style: none; padding: 0; display: grid; gap: 2.5rem; }
.event { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 800px) { .event { grid-template-columns: minmax(180px, 28%) 90px 1fr; } }
.event__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.event__img img { width: 100%; height: 100%; object-fit: cover; }
.event__date { display: grid; place-items: center; width: 80px; padding: .6rem 0; background: var(--accent); color: #fff; border-radius: 10px; text-transform: uppercase; line-height: 1.1; }
.event__date strong { font-size: 1.8rem; }
.event h2 { font-size: 1.5rem; }
.agenda { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 2rem; }
.agenda h3 { border-bottom: 2px solid var(--accent); padding-bottom: .3rem; }
.agenda ul { list-style: none; padding: 0; }
.agenda li { display: grid; grid-template-columns: 4.5em 1fr; gap: .2rem .8rem; padding: .35rem 0; border-bottom: 1px solid #eee; }
.agenda time { font-weight: 700; color: var(--accent); }
.agenda small { grid-column: 2; color: #666; }
.schedule { display: grid; gap: clamp(28px, 4vw, 56px); }
.act { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .act { grid-template-columns: minmax(240px, 34%) 1fr; } }
.day { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 .2rem; }
.theme-white .day { color: var(--orange); }

/* Footer */
.site-footer { position: relative; background: var(--sand) center / cover no-repeat; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.15); }
.site-footer__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gutter); display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.footer-logo img { width: 160px; height: auto; border-radius: var(--radius); }
.site-footer h2 { color: var(--ink); font-size: 1.5rem; }
.site-footer h3 { color: var(--ink); margin-bottom: .6rem; }
.site-footer h3.more { margin-top: 1.5rem; }
.site-footer p { margin-bottom: .8rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.follow a { display: block; font-weight: 700; margin-bottom: .4rem; }
.newsletter form { display: grid; gap: .8rem; max-width: 380px; }
.newsletter small { color: #444; }

@media (max-width: 599px) { .form .row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .tablist, .burger { display: none; } .tabpanel[hidden] { display: block !important; } .print-title { display: block !important; } }
