html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;                /* take up all remaining space */
}

.site-footer {
  margin-top: auto;       /* push the footer to the bottom */
}

/*------------------------------------*\
  Root Variables
\*------------------------------------*/
:root {
  /* New Palette: Light canvas + charcoal header/footer */
  --color-bg: #f4f4f4;         /* off-white page background */
  --color-header: #2c3e50;     /* dark charcoal/nav */
  --color-footer: #2c3e50;     /* same as header */
  --color-white: #ffffff;      /* card & section bg */
  --color-text: #333333;       /* dark text on light bg */
  --color-muted: #7f8c8d;      /* for secondary text */
  --color-primary: #e67e22;    /* bright orange accents */
  --color-secondary: #95a5a6;  /* light grey accents */

  /* Typography & spacing (unchanged) */
  --font-sans: 'Montserrat', sans-serif;
  --font-serif: 'Merriweather', serif;
  --fz-base: 1rem;
  --fz-lg: 1.125rem;
  --fz-xl: 1.5rem;
  --fz-xxl: 2.5rem;
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}


/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Section Title Decoration */
.section-title {
  font-size: var(--fz-xl);
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
  position: relative;
  padding-bottom: var(--sp-1);
  font-family: var(--font-serif);
}
.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  bottom: 0;
  left: 0;
}

/* Fade-in Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out both; }

/* Responsive Nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .site-nav.active { transform: translateX(0); }
  .site-nav ul { flex-direction: column; padding: var(--sp-2); }
  .site-nav li { margin-bottom: var(--sp-1); }
  nav a { font-size: var(--fz-lg); }
}

/*------------------------------------*\
  Base Reset
\*------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fz-base);
  color: var(--color-accent);
  background-color: var(--color-bg);
  line-height: 1.6;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text); /* off-white text against black */
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}

/*------------------------------------*\
  Containers
\*------------------------------------*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-2) 0;
}

/*------------------------------------*\
  Header & Navigation
\*------------------------------------*/
/* Header on black background */
.site-header {
  background: var(--color-header);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-header .logo,
.site-header nav a,
.nav-toggle span {
  color: var(--color-white);
}
.site-header nav a:hover {
  color: var(--color-primary);
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, nav right */
}

.site-nav {
  margin-left: auto;              /* push nav to the right */
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: var(--sp-4);
}

/*------------------------------------*\
  Hero Section
\*------------------------------------*/
.hero {
  position: relative;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  filter: brightness(0.7);
}
.hero-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  padding: var(--sp-2);
}
.hero-copy h2 {
  font-size: var(--fz-xxl);
  margin-bottom: var(--sp-1);
  font-family: var(--font-serif);
}
.hero-copy p {
  font-size: var(--fz-lg);
  margin-bottom: var(--sp-2);
}
.hero-copy .btn {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}
.hero-copy .btn:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/*------------------------------------*\
  Feature Cards
\*------------------------------------*/
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);    /* exactly 3 columns */
  gap: var(--sp-4);
  max-width: 960px;                         /* 3×280px + 2×gap ≈ 960px */
  margin: var(--sp-5) auto;                 /* auto-center the grid */
}
.feature {
  background: var(--color-grey);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
}
.feature img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature h3 {
  margin: var(--sp-3) 0 var(--sp-1);
  color: var(--color-primary);
}
.feature p {
  padding: 0 var(--sp-2) var(--sp-3);
  color: var(--color-muted);
}

/*------------------------------------*\
  Products Grid
\*------------------------------------*/
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}
/* Container & card */
.product-card {
  background: var(--color-secondary);   /* light grey */
  display: flex;
  flex-direction: column;
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}



/* Title spacing + make it grow */
.product-card h4 {
  margin: var(--sp-2) 0;
  color: var(--color-accent);
  flex-grow: 1;                         /* pushes button to bottom */
}

/* Details button pinned to bottom */
.product-card a {
  margin-top: auto;
  align-self: start;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.product-card a:hover {
  background: var(--color-accent);
}

/* Image frame wrapper */
.product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;         /* square frame – adjust ratio as desired */
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-secondary); /* optional grey placeholder */
  flex-shrink: 0;
}

/* Make the img fill the frame */
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*------------------------------------*\
  Product Detail
\*------------------------------------*/
/* Grid layout for detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr auto; /* 3 columns now: image | info | CTA */
  gap: var(--sp-5);
}

/* Lightbox image styling */
.lightbox-container img {
  width: 100%;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

/* Info column */
.product-info p {
  margin-top: var(--sp-2);
  color: var(--color-muted);
  line-height: 1.8;
}
.product-info ul {
  margin: var(--sp-3) 0;
  padding-left: var(--sp-4);
  color: var(--color-accent);
}

/* Prominent CTA button */
.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fz-lg);
  border-radius: var(--radius-md);
  margin-top: var(--sp-4);
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.product-cta {
  align-self: start;                 /* pin it to the top of its column */
  margin-left: var(--sp-4);
}

.product-cta .cta-btn {
  white-space: nowrap;
}

/*------------------------------------*\
  Forms
\*------------------------------------*/
form {
  background: var(--color-white);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: var(--sp-4) auto;
}
form input,
form textarea {
  width: 100%;
  padding: var(--sp-2);
  margin-bottom: var(--sp-2);
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: var(--fz-base);
}
form button {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--sp-2) var(--sp-4);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fz-base);
  cursor: pointer;
  transition: background 0.2s;
}
form button:hover {
  background: var(--color-secondary);
}

/*------------------------------------*\
  Footer
\*------------------------------------*/
.site-footer {
  background: var(--color-footer);
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}
.site-footer,
.site-footer a {
  color: var(--color-white);
}
.site-footer a:hover {
  color: var(--color-primary);
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
}

.footer-nav ul {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-legal a {
  color: var(--color-white);
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-legal span {
  margin: 0 var(--sp-1);
  color: var(--color-white);
}

/* Contact Info Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

/* Map container styling */
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-md);
}

/* Details styling */
.details p {
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}
.details a {
  color: var(--color-primary);
  text-decoration: none;
}
.details a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-container,
  .details {
    width: 100%;
  }
}

/* Modal backdrop */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

/* Modal content box */
.modal-content {
  background: var(--color-white);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Close “×” */
.modal-close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  font-size: 1.5rem;
  cursor: pointer;
}
