/* IronGate Hospitality — Premium UI */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --cream: #faf9f7;
  --cream-dark: #f0ede8;
  --gold: #b8860b;
  --gold-light: #c9a227;
  --text: #334155;
  --text-muted: #64748b;
  --white: #fff;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--dark { background: var(--navy); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark a { color: var(--gold-light); }
.section--dark .text-muted { color: rgba(250, 249, 247, 0.75); }

.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.uppercase { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.site-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--navy); }
.site-nav .btn { padding: 0.5rem 1.25rem; background: var(--navy); color: var(--white) !important; border-radius: 2px; }
.site-nav .btn:hover { background: var(--navy-light); color: var(--white) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 4.5rem; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); display: none; }
  .site-nav.is-open { display: flex; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border-radius: 2px;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-light); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); }

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
}
.hero--with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--with-image .container { position: relative; z-index: 1; }
.hero--with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(250, 249, 247, 0.3) 100%);
}
.hero--with-image .hero__title,
.hero--with-image .hero__subtitle,
.hero--with-image .uppercase { color: var(--cream); }
.hero--with-image .hero__subtitle { color: rgba(250, 249, 247, 0.9); }
.hero--with-image .text-gold { color: var(--gold-light); }
.hero__title { margin-bottom: 1rem; }
.hero__subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 32ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (smaller) with image */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .hero__title,
.page-hero .hero__subtitle,
.page-hero .uppercase { color: var(--cream); }
.page-hero .hero__subtitle { color: rgba(250, 249, 247, 0.9); }
.page-hero .text-gold { color: var(--gold-light); }

/* Image cards */
.card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img-wrap img { transform: scale(1.03); }
.img-block { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.img-block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-block--tall { aspect-ratio: 3/4; }
.img-block--wide { aspect-ratio: 16/10; }
.img-block--square { aspect-ratio: 1; }

/* Cards */
.card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1); }
.card__body { padding: 1.75rem; }
.card__title { margin-bottom: 0.5rem; }
.card__text { color: var(--text-muted); font-size: 0.9375rem; }

/* Grid */
.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-error { font-size: 0.875rem; color: #b91c1c; margin-top: 0.25rem; }
.form-success { padding: 1rem; background: #ecfdf5; color: #065f46; border-radius: 2px; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.site-footer a { color: rgba(250, 249, 247, 0.9); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(250, 249, 247, 0.1); font-size: 0.875rem; color: var(--text-muted); }

/* Blog */
.blog-card .card__body { padding: 0; }
.blog-card .card__media {
  aspect-ratio: 16/10;
  background: var(--cream-dark);
  overflow: hidden;
}
.blog-card .card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card__content { padding: 1.5rem; }
.blog-card .card__meta { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 1.25rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }

/* Utilities */
/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: inline-block; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 2px; color: var(--text); font-size: 0.875rem; }
.pagination a:hover { background: var(--cream-dark); border-color: var(--gold); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
