/* ==========================================================
   SC Kitchen and Bath — styles.css
   Mobile-first. Breakpoints: 640px (tablet) · 1024px (desktop)
   ========================================================== */

/* --- Custom Properties --- */
:root {
  --cream:       #f7f6f1;
  --gold:        #b0914d;
  --gold-dark:   #8a6e35;
  --black:       #000000;
  --charcoal:    #1a1a1a;
  --white:       #ffffff;
  --gray:        #555555;
  --border:      #e0ddd6;
  --header-h:    68px;
  --max-w:       1160px;
  --radius:      2px;
  --ease:        240ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg              { display: block; max-width: 100%; }
a                     { color: inherit; text-decoration: none; }
ul                    { list-style: none; }
button                { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea       { font: inherit; }

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 4.5rem; }

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.4rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--gold);
  color: var(--white);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transition: background var(--ease), border-color var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  outline: none;
}

.btn-full { width: 100%; text-align: center; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}

.site-header.scrolled,
.site-header:has(.site-nav.open) {
  background: var(--cream);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; }

.header-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Nav — hidden on mobile, full-screen overlay when .open */
.site-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--cream);
  padding: 2rem 1.25rem;
  flex-direction: column;
  z-index: 199;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

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

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-link {
  display: block;
  padding: 0.9rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}

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

.site-header.scrolled .nav-link,
.site-nav.open .nav-link { color: var(--black); }

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  width: 38px;
  height: 38px;
}

.bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
  transform-origin: center;
}

.site-header.scrolled .bar { background: var(--black); }

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  margin-top: calc(-1 * var(--header-h));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--charcoal);
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/heroKitchen.png');
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-h) + 3rem) 1.25rem 4rem;
}

.hero-inner {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-title .amp { color: var(--gold); }

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* Line break only on wider screens */
.break { display: none; }

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--white);
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services-section { background: var(--cream); }

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-icon {
  color: var(--gold);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  line-height: 1;
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.service-item p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ==========================================================
   ABOUT + VISIT US
   ========================================================== */
.about { background: var(--white); }

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text .section-title { margin-bottom: 1rem; }

.about-text p {
  color: var(--gray);
  max-width: 52ch;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--ease);
}

.instagram-link:hover { color: var(--gold-dark); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { background: var(--cream); }

.contact-info .section-title { margin-bottom: 1.25rem; }

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  align-items: baseline;
}

.info-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 0.1rem;
}

.info-list dd { font-size: 0.975rem; }

.info-list a {
  transition: color var(--ease);
  text-decoration: underline;
  text-decoration-color: transparent;
}

.info-list a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* Form */
.contact-form-wrap {
  max-width: 700px;
  margin-inline: auto;
  width: 100%;
}

.contact-form-wrap .section-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group .req { color: var(--gold); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  color: var(--black);
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 145, 77, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.5);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.85rem; }

.footer-ig {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--ease);
}

.footer-ig:hover { color: var(--gold); }

/* ==========================================================
   TABLET  640px
   ========================================================== */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .break        { display: inline; }
}

/* ==========================================================
   DESKTOP  1024px
   ========================================================== */
@media (min-width: 1024px) {

  /* Nav — inline, no overlay */
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    border-top: none;
    overflow: visible;
    inset: unset;
  }

  .nav-list {
    flex-direction: row;
    gap: 2.25rem;
  }

  .nav-link {
    padding: 0;
    font-size: 1.05rem;
    border-bottom: none;
  }

  .menu-toggle { display: none; }

  /* Gallery: 3 columns */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Services below gallery: 3 columns */
  .services-list-row {
    flex-direction: row;
    gap: 2.5rem;
  }

  .services-list-row .service-item { flex: 1; }

  /* About + Visit Us side by side */
  .about-inner {
    flex-direction: row;
    gap: 5rem;
    align-items: flex-start;
  }

  .about-text { flex: 1; }

  .about-inner .contact-info {
    flex: 0 0 300px;
    margin-inline: auto;
  }
}
