/* ==========================================================================
   Grays Avenue Hotel — A Victorian Bed & Breakfast
   Modern, responsive stylesheet
   ========================================================================== */

:root {
  --color-bg: #f7f2e9;
  --color-surface: #ffffff;
  --color-ink: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-primary: #2e4b3a;      /* deep forest green */
  --color-primary-dark: #223a2c;
  --color-accent: #b08d57;       /* warm antique gold */
  --color-accent-soft: #e8dcc3;
  --color-line: #e2d8c6;
  --color-cream: #faf6ef;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
  --radius: 10px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(180deg, rgba(46, 75, 58, 0.06), rgba(46, 75, 58, 0) 320px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--color-primary-dark);
  margin: 0 0 0.6em;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--color-accent-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #f3efe6;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background:
    linear-gradient(rgba(34, 58, 44, 0.72), rgba(34, 58, 44, 0.72)),
    url("../images/home-page-heading.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 0.4em;
}

.hero p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 1.4em;
  color: #f0ead9;
}

.hero .btn {
  background: var(--color-accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
}

.hero .btn:hover {
  background: #c9a76f;
  text-decoration: none;
}

/* ==========================================================================
   Layout / sections
   ========================================================================== */

main {
  padding: 40px 0 60px;
}

.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-head h2 {
  font-size: 1.9rem;
}

.section-head p {
  color: var(--color-muted);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 44px 20px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 0.3em;
}

.page-hero p {
  color: #e8e0cd;
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-primary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.4em;
}

.card-body p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card-body .btn {
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent);
}

.btn-accent:hover {
  background: #c9a76f;
}

/* Two-column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.feature-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--color-line);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Room list */
.room {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.room img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.room h3 {
  margin-bottom: 0.3em;
}

.room .rate {
  color: var(--color-accent);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.data th,
table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}

table.data th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-serif);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:nth-child(even) td {
  background: var(--color-cream);
}

/* Callout / note */
.note {
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.faq summary {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
  color: var(--color-muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.gallery figure {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery figcaption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: #d9d2c2;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.8em;
}

.site-footer a {
  color: #d9d2c2;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-bottom p {
  margin: 4px 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .room {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .hero {
    padding: 48px 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }
}

/* Accessibility helpers */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}
