/* ============================================
   A.D. KITCHEN FITTERS - MAIN STYLESHEET
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg-dark: #1a1714;
  --color-bg-darker: #141210;
  --color-bg-section: #f7f5f2;
  --color-bg-white: #ffffff;
  --color-text-light: #f0ece6;
  --color-text-dark: #1a1714;
  --color-text-muted: #6b6560;
  --color-accent: #c8a86e;
  --color-accent-hover: #dbbe82;
  --color-border: #2e2a26;
  --color-border-light: #e0dcd6;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-label: 'DM Sans', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.label-text {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 23, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.site-logo span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
}

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

.main-nav a {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: var(--color-accent);
}

.btn-quote {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border: 1px solid var(--color-text-light);
  padding: 10px 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-quote:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  transition: all 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  max-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-home {
  height: 85vh;
  max-height: 800px;
  align-items: center;
  padding-bottom: 0;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 23, 20, 0.72) 0%,
    rgba(26, 23, 20, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-home .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero h1 {
  color: var(--color-text-light);
}

.hero .label-text {
  color: rgba(240, 236, 230, 0.7);
}

.hero-home .hero-subtitle {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 236, 230, 0.6);
  margin-top: 4px;
}

.hero-line {
  width: 80px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
  margin-left: 16px;
  vertical-align: middle;
}

.hero .btn-primary {
  margin-top: 12px;
}

/* Page hero with Google Maps link */
.hero-extras {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  margin-top: 12px;
}

.google-maps-link {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.google-maps-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(240, 236, 230, 0.3);
  border-radius: 50%;
  color: var(--color-text-light);
  margin-top: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-submit {
  width: 100%;
  padding: 16px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #2e2a26;
}

/* ============================================
   SERVICES SECTION (Homepage)
   ============================================ */
.services-section {
  background: var(--color-bg-white);
  text-align: center;
}

.services-section h2 {
  margin-bottom: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.service-card-wide {
  grid-column: 1 / -1;
}

/* 
   =============================================
   IMAGE PLACEHOLDERS
   =============================================
   All placeholder images have a class like:
     .placeholder-img
   And a data-label attribute describing what photo goes there.
   
   TO INSERT YOUR OWN PHOTOS:
   1. Put your image files in the /images/ folder
   2. Find the <div class="placeholder-img" ...> you want to replace
   3. Replace it with: <img src="images/your-photo.jpg" alt="Description">
   
   Or for background images on hero sections and service cards,
   update the inline style: style="background-image: url('images/your-photo.jpg')"
   ============================================= 
*/

.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: rgba(240, 236, 230, 0.4);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px dashed rgba(240, 236, 230, 0.15);
}

.placeholder-img::before {
  content: '📷 ' attr(data-label);
}

.service-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-card:hover .card-bg {
  transform: scale(1.05);
}

.service-card .card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.8) 0%, rgba(26, 23, 20, 0.2) 60%);
  transition: background 0.4s ease;
}

.service-card:hover .card-bg::after,
.service-card:active .card-bg::after {
  background: linear-gradient(to top, rgba(26, 23, 20, 0.9) 0%, rgba(26, 23, 20, 0.5) 100%);
}

.service-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  text-align: left;
}

.service-card .card-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 230, 0.6);
  margin-bottom: 4px;
}

.service-card h3 {
  color: var(--color-text-light);
}

.service-card .card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(240, 236, 230, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  z-index: 2;
  transition: all 0.3s ease;
}

.service-card:hover .card-arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

/* Two-column services on tablet+ */
@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  background: var(--color-bg-section);
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 8px;
}

.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-card {
  background: var(--color-bg-white);
  padding: 40px 32px;
  border-radius: 4px;
  text-align: left;
}

.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text-dark);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-card .author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-card .author-location {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border-light);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.carousel-dots button.active {
  background: var(--color-accent);
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-section {
  background: var(--color-bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.why-content .label-text {
  margin-bottom: 8px;
}

.why-content h2 {
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--color-bg-section);
  padding: 24px;
  border-radius: 4px;
}

.feature-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   SERVICE PAGE CONTENT
   ============================================ */
.service-intro {
  background: var(--color-bg-white);
  padding: 80px 0 40px;
}

.service-intro-inner {
  max-width: 700px;
}

.service-intro h2 {
  margin-bottom: 20px;
}

.service-intro p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.service-intro h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.service-intro ul {
  list-style: disc;
  padding-left: 20px;
}

.service-intro ul li {
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* ============================================
   IMAGE GALLERY / CAROUSEL
   ============================================ */
.gallery-section {
  background: var(--color-bg-white);
  text-align: center;
  padding: 40px 0 80px;
}

.gallery-section h2 {
  margin-bottom: 8px;
}

.gallery-carousel {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  aspect-ratio: 16/10;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide .placeholder-img {
  aspect-ratio: 16/10;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(26, 23, 20, 0.6);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  border-radius: 50%;
}

.gallery-btn:hover {
  background: rgba(26, 23, 20, 0.85);
}

.gallery-btn.prev {
  left: 12px;
}

.gallery-btn.next {
  right: 12px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  background: var(--color-bg-white);
}

.contact-inner {
  max-width: 700px;
}

.contact-inner .label-text {
  margin-bottom: 8px;
}

.contact-inner h2 {
  margin-bottom: 12px;
}

.contact-inner > p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  font-family: var(--font-label);
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group-full {
  margin-bottom: 16px;
}

.form-submit {
  margin-top: 8px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand .site-logo {
  margin-bottom: 24px;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-info-item .info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.footer-info-item .info-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.footer-info-item .info-value {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer-info-item .info-value a {
  color: var(--color-text-light);
}

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

.footer-pages h4,
.footer-social h4 {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.footer-pages ul li {
  margin-bottom: 10px;
}

.footer-pages ul li a {
  font-size: 0.9rem;
  color: rgba(240, 236, 230, 0.7);
  transition: color 0.3s;
}

.footer-pages ul li a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-light);
  transition: all 0.3s;
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.footer-bottom {
  padding-top: 24px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-toggle {
    display: none !important;
  }
  
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 300px;
    height: 45vh;
  }
  
  .hero-home {
    height: 75vh;
  }
  
  .section-padding {
    padding: 56px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
