/* =============================================
   SHARED STYLESHEET — The Crown Inn
   All inner pages link to this file
============================================= */

/* DESIGN TOKENS */
:root {
  --cream:       #F8F7F5;
  --cream-dark:  #EAEAEA;
  --white:       #FFFFFF;
  --charcoal:    #363D40;
  --charcoal-mid:#666E79;
  --stone:       #8A9199;
  --red:         #9E4535;
  --red-light:   #B5604E;
  --red-dark:    #7A3228;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;

  --shadow-sm:   0 2px 8px rgba(54,61,64,.08);
  --shadow:      0 4px 24px rgba(54,61,64,.12);
  --shadow-lg:   0 12px 48px rgba(54,61,64,.18);

  --transition:  all .25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }



/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; font-weight: 600; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

/* LAYOUT */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; margin: 10px 0 16px; }
.section-header h2 em { color: var(--red); font-style: italic; }
.section-header p { color: var(--stone); max-width: 540px; margin: 0 auto; font-weight: 300; font-size: .95rem; }

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 160px 0 80px;
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: .25;
  overflow: hidden;
}
.page-hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero__content { position: relative; z-index: 2; max-width: 700px; }
.page-hero__eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 12px;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero__title em { font-style: italic; }
.page-hero__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 12px 0;
}
.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: .75rem;
  color: var(--stone);
}
.breadcrumb__list a { color: var(--charcoal-mid); transition: var(--transition); }
.breadcrumb__list a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--cream-dark); }
.breadcrumb__current { color: var(--charcoal); font-weight: 500; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline:hover {
  background: var(--red);
  color: var(--white);
}
.btn--dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn--dark:hover {
  background: var(--charcoal-mid);
  border-color: var(--charcoal-mid);
  transform: translateY(-1px);
}
.btn--sm { padding: 10px 20px; font-size: .72rem; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: var(--transition); }

.header-util {
  background: var(--charcoal);
  padding: 8px 0;
  font-size: .72rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.6);
}
.header-util .container { display: flex; justify-content: space-between; align-items: center; }
.header-util a { color: rgba(255,255,255,.7); transition: var(--transition); }
.header-util a:hover { color: var(--white); }
.header-util__left { display: flex; gap: 20px; }
.header-util__right { display: flex; gap: 12px; align-items: center; }
.util-sep { color: rgba(255,255,255,.25); }

.header-main { background: var(--white); border-bottom: 1px solid rgba(54,61,64,.08); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img { height: 48px; width: auto; }
.site-logo__name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--charcoal); line-height: 1.1; }
.site-logo__sub { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 500; }

.main-nav { display: flex; align-items: center; list-style: none; }
.main-nav__item { position: relative; }
.main-nav__link { display: block; padding: 8px 14px; font-size: .78rem; font-weight: 500; letter-spacing: .05em; color: var(--charcoal-mid); transition: var(--transition); white-space: nowrap; }
.main-nav__link:hover,
.main-nav__link.active { color: var(--red); }

.main-nav__dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 200px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(54,61,64,.06);
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--transition); z-index: 200; list-style: none;
}
.main-nav__item:hover .main-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__dropdown a { display: block; padding: 10px 20px; font-size: .78rem; color: var(--charcoal-mid); transition: var(--transition); }
.main-nav__dropdown a:hover { color: var(--red); background: var(--cream); padding-left: 24px; }

.header-ctas { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.site-header.scrolled .header-util { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: var(--transition); }

/* FOOTER */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); }

.footer-main { padding: 72px 0 48px; }
.footer-main .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }

.footer-brand__name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); margin-bottom: 4px; }
.footer-brand__sub { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 20px; }
.footer-brand__desc { font-size: .82rem; line-height: 1.75; color: rgba(255,255,255,.5); font-weight: 300; margin-bottom: 24px; }
.footer-brand__contact { display: flex; flex-direction: column; gap: 6px; }
.footer-brand__contact a { font-size: .82rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-brand__contact a:hover { color: var(--red-light); }

.footer-col__title { font-family: var(--font-serif); font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-col__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col__links a { font-size: .8rem; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-col__links a:hover { color: var(--red-light); }

.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom__copy { font-size: .72rem; color: rgba(255,255,255,.35); }
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a { font-size: .72rem; color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-bottom__links a:hover { color: rgba(255,255,255,.7); }

/* TAGS */
.tag { padding: 6px 14px; background: var(--cream-dark); border-radius: 100px; font-size: .72rem; font-weight: 500; color: var(--charcoal-mid); letter-spacing: .04em; }

/* ENQUIRY FORM */
.enquiry-form { display: grid; gap: 16px; }
.enquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .88rem;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(158,69,53,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .container { padding: 0 16px; }
  .main-nav, .header-ctas { display: none; }
  .header-util { display: none; }
  /* Mobile header: hamburger | logo (centre) */
  .header-main .container { position: relative; justify-content: center; }
  .nav-toggle { display: flex; order: 1; position: absolute; left: 16px; }
  .site-logo { flex-shrink: 1; min-width: 0; order: 2; }
  .site-logo__name, .site-logo__sub { display: none; }
  .site-logo img { height: 36px; }
  .footer-main .container { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }
  .enquiry-form .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 60px; }

  /* Mobile nav open state */
  nav.nav-open { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 99; overflow-y: auto; }
  nav.nav-open .main-nav { display: flex; flex-direction: column; padding: 8px 0 40px; }
  nav.nav-open .main-nav__item { border-bottom: 1px solid rgba(54,61,64,.06); }
  nav.nav-open .main-nav__item:last-child { border-bottom: none; }
  nav.nav-open .main-nav__link { padding: 18px 24px; font-size: 1rem; font-weight: 500; color: var(--charcoal); letter-spacing: .01em; }
  nav.nav-open .main-nav__link.active { color: var(--red); }
  nav.nav-open .main-nav__dropdown { display: none; }

  /* Hamburger → X animation */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}
