/* Harrogate Kitchens - Atelier Luxury Stylesheet */
/* Inspired by Charles Yorke Whole-Site Grammar */

:root {
  --bg-darkest: #07090C;
  --bg-surface: #0E1217;
  --bg-card: #151A21;
  --bg-card-hover: #1C232D;
  --bg-glass: rgba(14, 18, 23, 0.88);
  
  --accent-gold: #C8A97E;
  --accent-gold-light: #E2C9A6;
  --accent-gold-glow: rgba(200, 169, 126, 0.2);
  --accent-muted: #8A7558;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(200, 169, 126, 0.3);
  --border-accent-strong: rgba(200, 169, 126, 0.6);
  
  --text-primary: #F5F7FA;
  --text-secondary: #9AA3AF;
  --text-tertiary: #636D7B;
  
  --fluid-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-strip-img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0.95);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #D4B68D 0%, #B89668 100%);
  color: #07090C;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--fluid-easing);
  box-shadow: 0 4px 14px rgba(200, 169, 126, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 126, 0.35);
  color: #000;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(200, 169, 126, 0.06);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 15%, rgba(200, 169, 126, 0.1) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 32px 60px;
  text-align: center;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(200, 169, 126, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-heading em {
  font-style: italic;
  color: var(--accent-gold-light);
  font-weight: 300;
}

.hero-subheading {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Feature Image Frame */
.hero-visual-frame {
  max-width: 1040px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  background: #111;
  position: relative;
}

.hero-visual-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(7, 9, 12, 0.95));
  padding: 24px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Trust Pillar Stats */
.trust-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.pillar-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.25s ease;
}

.pillar-item:hover {
  border-color: var(--border-accent);
}

.pillar-metric {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--accent-gold);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}

.pillar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pillar-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* General Section Layout */
section.page-section {
  padding: 80px 32px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-main-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  color: #FFFFFF;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-intro-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Service Category Cards (Grid) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--fluid-easing);
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.service-category-tag {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: #FFF;
  margin-bottom: 12px;
}

.service-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-features-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features-list li {
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features-list li::before {
  content: "✦";
  color: var(--accent-gold);
  font-size: 10px;
}

/* Material Showcase Tabbed Explorer */
.material-explorer-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
}

.mat-nav-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.mat-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mat-nav-btn.active {
  border-color: var(--accent-gold);
  background: rgba(200, 169, 126, 0.08);
  color: var(--accent-gold-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mat-nav-btn strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.mat-nav-btn.active strong {
  color: var(--accent-gold-light);
}

.mat-nav-btn span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.mat-panel {
  display: none;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
}

.mat-panel.active {
  display: grid;
}

.mat-visual {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #111;
}

.mat-info-block h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: #FFF;
  margin-bottom: 12px;
  font-weight: 500;
}

.mat-info-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.mat-specs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
}

.spec-tile-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
}

.spec-tile-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Turnkey Management Banner */
.turnkey-highlight {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(200, 169, 126, 0.08) 0%, var(--bg-surface) 60%);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}

.turnkey-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 36px);
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 14px;
}

.turnkey-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.trades-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trade-tag::before {
  content: "✓";
  color: var(--accent-gold);
  font-weight: bold;
}

/* Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.gallery-img-box {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #121519;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 18px 20px;
}

.gallery-cat {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.gallery-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.gallery-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Lightbox Modal */
#lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 8, 0.94);
  backdrop-filter: blur(12px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

.lightbox-meta {
  padding: 20px 24px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-subtle);
  color: #FFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Contact Details & Inquiry Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
}

.info-item {
  margin-bottom: 24px;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.info-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.info-value a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.info-value a:hover {
  color: var(--accent-gold);
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-ctrl {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-ctrl:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  background: #040608;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 32px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  header.site-header {
    padding: 14px 16px;
    gap: 12px;
    min-width: 0;
  }
  .brand-container {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-strip-img {
    display: none;
  }
  .brand-title {
    font-size: 18px;
    letter-spacing: 0.6px;
  }
  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 1px;
  }
  nav.main-nav {
    flex: 0 0 auto;
    gap: 0;
  }
  .nav-list {
    display: none;
  }
  .nav-cta-group {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mat-panel {
    grid-template-columns: 1fr;
  }
  .turnkey-highlight {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  section.page-section {
    padding: 50px 18px;
  }
  .hero-wrapper {
    padding: 50px 18px 40px;
  }
}

/* Mobile Nav Drawer */
#mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-accent);
  z-index: 2500;
  flex-direction: column;
  padding: 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#mobile-drawer.active {
  display: flex;
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.drawer-links a:hover {
  color: var(--accent-gold);
}

/* Embedded Google Maps location on the contact route */
.map-frame-wrap {
  width: 100%;
  height: 320px;
  margin-top: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: #e8e5df;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 600px) {
  .map-frame-wrap {
    height: 280px;
  }
}
