/*
Theme Name:  AJM Painting Services
Theme URI:   https://ajmpainting.com.au
Author:      AJM Painting Services
Description: Custom WordPress theme for AJM Painting Services — Melbourne's trusted painting specialists.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: ajm-painting
*/

/* ================================================================
   AJM Painting Services — Design Version 1
   Fonts: Satoshi | Palette: #0a0a0a · #d7df23 · dark navy accents
   ================================================================ */

:root {
  --bg:          #0a0a0a;
  --bg-alt:      #0f0f0f;
  --bg-navy:     #0b1628;
  --surface:     #141414;
  --border:      rgba(255, 255, 255, 0.08);
  --border-acc:  rgba(215, 223, 35, 0.28);
  --text:        #f4f1ea;
  --muted:       #888;
  --dim:         #444;
  --accent:      #d7df23;
  --accent-h:    #c0c91e;
  --accent-glow: rgba(215, 223, 35, 0.12);
  --navy-mid:    #132040;
  --r:           8px;
  --r-lg:        16px;
  --r-xl:        24px;
  --nav-h:       80px;
  --max-w:       1400px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; -webkit-appearance: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Shared buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.825rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: var(--r);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(215, 223, 35, 0.28);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent; color: #ffffff;
  font-size: 0.825rem; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.5); border-radius: var(--r);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── Section headers ─────────────────────────────────────────── */
.section-h {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900; letter-spacing: -0.025em; line-height: 1.08;
  color: var(--text);
}
.section-p {
  font-size: 0.925rem; color: var(--muted); line-height: 1.8; max-width: 540px;
}
/* Spacing for section headings that no longer have a tag above them */
.testimonials .section-h,
.gallery .section-h,
.cta-banner .section-h,
.contact .section-h { margin-bottom: 0.5rem; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow 0.35s var(--ease);
  overflow: visible;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-logo img { height: 66px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 2rem; margin-left: auto;
}
.nav-links > li > a {
  font-size: 0.825rem; font-weight: 500; letter-spacing: 0.03em;
  color: #555;
  transition: color 0.2s;
}
.nav-links > li > a:hover { color: #0a0a0a; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.775rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: var(--r);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }
.nav-hamburger { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; }
.nav-hamburger span { display: block; height: 2px; background: #0a0a0a; border-radius: 2px; transition: 0.3s; }

/* ── Dropdown ────────────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a {
  display: flex; align-items: center; gap: 0.3rem; cursor: pointer;
}
.nav-has-dropdown > a .chevron {
  transition: transform 0.25s var(--ease); flex-shrink: 0;
}
.nav-has-dropdown:hover > a .chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.13);
  min-width: 220px;
  /* padding-top bridges the visual gap so mouse stays in hover zone */
  padding: 1.25rem 0.5rem 0.5rem;
  margin-top: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 9999;
  list-style: none;
  pointer-events: none;
}
/* Arrow tip sits inside the padding area */
.nav-dropdown::before {
  content: "";
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.09);
  border-top: 1px solid rgba(0,0,0,0.09);
}
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown li a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 1rem;
  font-size: 0.825rem; font-weight: 500;
  color: #444; border-radius: var(--r);
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}
.nav-dropdown li a::before {
  content: "";
  display: block; width: 6px; height: 6px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
.nav-dropdown li a:hover { background: #f7f6f2; color: #0a0a0a; }
.nav-dropdown li + li { border-top: 1px solid rgba(0,0,0,0.05); }

/* ── Mobile nav overlay ──────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: #fff;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1.5rem) 2rem 2rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav > ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(0,0,0,0.07); }
.mobile-nav > ul > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-size: 1rem; font-weight: 600; color: #0a0a0a;
}
.mobile-nav > ul > li > a .chevron { transition: transform 0.25s; }
.mobile-nav > ul > li.open > a .chevron { transform: rotate(180deg); }
.mobile-sub {
  display: none; flex-direction: column; padding: 0.25rem 0 0.75rem 1rem;
}
.mobile-nav > ul > li.open .mobile-sub { display: flex; }
.mobile-sub a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0; font-size: 0.875rem; color: #555; font-weight: 500;
}
.mobile-sub a::before {
  content: ""; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.mobile-nav-cta {
  margin-top: 2rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; background: var(--accent); color: #0a0a0a;
  font-size: 0.825rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: var(--r);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 90vh;
  padding-top: var(--nav-h);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    url('ajm_painting_hero.png')
    center / cover no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
  padding: 5rem 0;
}

/* Left content */
.hero-title {
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 0.98;
  color: var(--text); margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--accent); }
.hero-title .block { display: block; }
.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.85);
  font-weight: 500;
  max-width: 460px; line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-trust {
  display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.775rem; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.02em;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Right: quote form */
.hero-form-wrap {
  position: relative;
}
.hero-form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.3);
}
.form-ttl { font-size: 1.2rem; font-weight: 700; color: #ffffff; margin-bottom: 0.25rem; }
.form-sub { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fg { display: flex; flex-direction: column; gap: 0.3rem; }
.fg.full { grid-column: 1 / -1; }
.fg label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.fg input, .fg select, .fg textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r);
  padding: 0.65rem 0.875rem;
  color: #ffffff; font-size: 0.875rem;
  transition: border-color 0.2s;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,0.4); }
.fg select option { background: #1a1a2e; color: #fff; }
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center;
  padding-right: 2.25rem; cursor: pointer;
}
.fg select option { background: #1a1a1a; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--accent); }
.fg textarea { resize: vertical; min-height: 72px; }
.form-btn {
  width: 100%; padding: 0.875rem;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.825rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: var(--r); margin-top: 0.75rem;
  transition: background 0.2s, transform 0.2s;
}
.form-btn:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ================================================================
   STATS
   ================================================================ */
.stats-band {
  background: var(--accent);
  padding: 3.5rem 0;
}
.stat-clone { display: none; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat {
  text-align: center; padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(0,0,0,0.15);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: #0a0a0a; line-height: 1;
}
.stat-lbl {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.5); margin-top: 0.35rem;
}

/* ================================================================
   SERVICES  (light section)
   ================================================================ */
.services {
  padding: 7rem 0;
  background: #ffffff;
}
.services-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap;
}
.services .section-h { color: #0a0a0a; }
.services .section-p { color: #5a5a5a; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-lg);
  padding: 1.875rem;
  position: relative; overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 0;
}
.svc-card:hover {
  border-color: rgba(215,223,35,0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
/* Heritage card: spans 2 cols */
.svc-card.wide { grid-column: span 2; }
.svc-icon {
  width: 50px; height: 50px;
  background: rgba(215,223,35,0.14);
  border: 1px solid rgba(215,223,35,0.25);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: #7a8300; margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.svc-name {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: #0a0a0a; margin-bottom: 0.5rem;
}
.svc-desc {
  font-size: 0.825rem; color: #666; line-height: 1.75; flex: 1;
  margin-bottom: 1.5rem;
}
.svc-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: #0a0a0a;
  transition: gap 0.2s var(--ease), color 0.2s;
  margin-top: auto;
}
.svc-link:hover { gap: 0.75rem; color: #7a8300; }
.svc-link svg { flex-shrink: 0; }

/* ================================================================
   HOW WE WORK  (full-width bg image, dark overlay)
   ================================================================ */
.how-we-work {
  padding: 7rem 0;
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('how-we-work.png') center / cover no-repeat;
}
.hww-header { text-align: center; margin-bottom: 4rem; }
.hww-header .section-h { color: #fff; }
.hww-header .section-p { color: #ffffff; font-weight: 500; margin: 1rem auto 0; text-align: center; }
.hww-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
/* Connecting line between steps */
.hww-steps::before {
  content: "";
  position: absolute; top: 2.25rem; left: 12.5%; right: 12.5%;
  height: 1px; background: rgba(215,223,35,0.3);
  z-index: 0;
}
.hww-step {
  text-align: center; padding: 0 2rem;
  position: relative; z-index: 1;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #0a0a0a;
  font-size: 1rem; font-weight: 900; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 6px rgba(215,223,35,0.15);
}
.step-title {
  font-size: 1rem; font-weight: 700; color: #ffffff;
  margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.825rem; color: #ffffff; font-weight: 500; line-height: 1.7;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials {
  padding: 7rem 0;
  background-color: #ffffff;
  background-image: url('Bg_for_section.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 30%;
  position: relative; overflow: hidden;
}
.testimonials::before { display: none; }
.testi-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}
.testi-header .section-h { color: #0a0a0a; }
.testi-header .section-p {
  color: #666; margin: 1rem auto 0; text-align: center;
}
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testi-card {
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-lg); padding: 2rem;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.testi-card:hover { border-color: rgba(215,223,35,0.45); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 1.25rem; }
.testi-stars svg { color: var(--accent); }
.testi-text {
  font-size: 0.9rem; color: #555;
  line-height: 1.8; font-style: italic;
  flex: 1; /* pushes footer to bottom */
  margin-bottom: 1.5rem;
}
.testi-footer {
  display: flex; align-items: center; gap: 0.875rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(0,0,0,0.07);
  margin-top: auto; /* pushes footer to bottom of each card */
}
.testi-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: #eef0c0;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #5a6000;
  flex-shrink: 0; letter-spacing: 0.02em;
}
.testi-name { font-size: 0.875rem; font-weight: 700; color: #0a0a0a; margin-bottom: 0.15rem; }
.testi-loc { font-size: 0.75rem; color: #888; }

/* ================================================================
   ABOUT  (light section)
   ================================================================ */
.about {
  padding: 7rem 0;
  background: #ffffff;
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%; height: 540px; object-fit: cover;
  border-radius: var(--r-xl);
}
.about-badge {
  position: absolute; bottom: 2.5rem; right: -1.75rem;
  background: var(--accent); color: #0a0a0a;
  padding: 1.25rem 1.625rem; border-radius: var(--r-lg);
  text-align: center;
  box-shadow: 0 12px 40px rgba(215,223,35,0.3);
}
.about-badge-n { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.about-badge-t { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.55); margin-top: 0.2rem; }
.about .section-h { color: #0a0a0a; }
.about .section-p { color: #5a5a5a; }
.about-content .section-p { margin: 1.25rem 0 0; }
.about-list {
  display: flex; flex-direction: column; gap: 0.875rem;
  margin: 2rem 0 2.5rem;
}
.about-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: #666; line-height: 1.6;
}
.about-list li svg { color: #7a8300; flex-shrink: 0; margin-top: 3px; }

/* ================================================================
   GALLERY — Infinite Carousel
   ================================================================ */
.gallery {
  padding: 7rem 0 0;
  background: var(--bg-alt);
  overflow: hidden;
}
.gallery-header {
  max-width: var(--max-w);
  margin: 0 auto 2.75rem;
  padding: 0 2rem;
}

/* Carousel wrapper — full viewport width */
.carousel-wrap {
  width: 100%;
  overflow: hidden;
  padding-bottom: 7rem;
}

/* Track: all cards in a single row, animates left */
.carousel-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: carousel-scroll 28s linear infinite;
}
.carousel-wrap:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Each card */
.g-item {
  flex: 0 0 calc(33.333vw - 1.25rem);
  height: 500px;
  overflow: hidden;
  border-radius: var(--r-lg);
  position: relative;
  cursor: pointer;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}
.carousel-wrap:hover .g-item:hover img { transform: scale(1.05); }
.g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.35s var(--ease);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-lbl {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  padding: 6.5rem 0; text-align: center;
  position: relative; overflow: hidden;
  background: var(--bg-alt);
}
.cta-banner .section-h { margin: 0.75rem 0; }
.cta-banner .section-h em { font-style: normal; color: var(--accent); }
.cta-banner .section-p { margin: 0 auto 2.5rem; text-align: center; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.825rem; font-weight: 600; color: var(--muted);
  transition: color 0.2s;
}
.cta-phone:hover { color: var(--text); }
.cta-phone svg { color: var(--accent); }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact {
  padding: 7rem 0;
  background: #ffffff;
}
.contact .section-h { color: #0a0a0a; }
.contact .section-p { color: #555; }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.contact-info { padding-top: 0.25rem; }
.contact-items {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-top: 2.5rem;
}
.c-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-icon {
  width: 46px; height: 46px;
  background: rgba(215,223,35,0.12);
  border: 1px solid rgba(215,223,35,0.3);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: #7a8300; flex-shrink: 0;
}
.c-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 0.2rem; }
.c-val { font-size: 0.9rem; color: #0a0a0a; font-weight: 500; }
.c-val a { color: #0a0a0a; }
.c-val a:hover { color: #7a8300; }
.contact-form-wrap {
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.07); border-radius: var(--r-xl); padding: 2.5rem;
}
.contact-form-wrap .form-ttl { color: #0a0a0a; }
.contact-form-wrap .form-sub { color: #666; }
.contact-form-wrap .fg label { color: #666; }
.contact-form-wrap .fg input,
.contact-form-wrap .fg select,
.contact-form-wrap .fg textarea {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  color: #0a0a0a;
}
.contact-form-wrap .fg input::placeholder,
.contact-form-wrap .fg textarea::placeholder { color: #aaa; }
.contact-form-wrap .fg select option { background: #fff; color: #0a0a0a; }
.contact-form-wrap .fg input:focus,
.contact-form-wrap .fg select:focus,
.contact-form-wrap .fg textarea:focus { border-color: #7a8300; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.cf-grid .fg.full { grid-column: 1 / -1; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #080808;
}

/* ── Top hero band ───────────────────────────────────────────── */
.footer-hero {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-hero-inner {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.ft-logo { flex-shrink: 0; }
.ft-logo img { height: 90px; width: auto; display: block; }
.ft-tagline {
  flex: 1; min-width: 200px;
  padding-left: 2.5rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.ft-tagline p {
  font-size: 0.95rem; color: rgba(255,255,255,0.75);
  line-height: 1.7; font-weight: 400; max-width: 380px;
}
.ft-cta {
  display: inline-flex; align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.ft-cta:hover { background: var(--accent-h); transform: translateY(-2px); }

/* ── Accent divider ──────────────────────────────────────────── */
.footer-divider {
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* ── Links grid ──────────────────────────────────────────────── */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 3rem;
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ft-h {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #ffffff;
  margin-bottom: 1.5rem;
}
.ft-links { display: flex; flex-direction: column; gap: 0.7rem; }
.ft-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.ft-links a:hover { color: #ffffff; }
.ft-contact-items { display: flex; flex-direction: column; gap: 0.9rem; }
.ft-c {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.ft-c svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.ft-c a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.ft-c a:hover { color: #ffffff; }

/* ── Bottom bar ──────────────────────────────────────────────── */
.footer-bottom { padding: 1.75rem 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.ft-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.ft-accent { color: var(--accent); }
.ft-legal { display: flex; gap: 1.75rem; }
.ft-legal a {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.ft-legal a:hover { color: rgba(255,255,255,0.7); }


/* ================================================================
   SCROLL REVEAL STATES (GSAP animates these)
   ================================================================ */
.sr { opacity: 0; transform: translateY(32px); }
.sr-l { opacity: 0; transform: translateX(-32px); }
.sr-r { opacity: 0; transform: translateX(32px); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet landscape  (max 1100px) ─────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 560px; }
  .hero-inner { padding: 3.5rem 0; }

  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { right: 1rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  .footer-hero-inner { gap: 2rem; }
  .ft-tagline { padding-left: 2rem; }
}

/* ── Tablet portrait  (max 900px) ────────────────────────────── */
@media (max-width: 900px) {
  /* Section padding: reduce from 7rem to 5rem */
  .services, .how-we-work, .testimonials,
  .about, .gallery, .contact { padding-top: 5rem; padding-bottom: 5rem; }
  .cta-banner { padding-bottom: 5rem; }

  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Stats */
  .stats-band { padding: 2.5rem 0; overflow: hidden; }

  /* Services */
  .services-header { flex-direction: column; align-items: flex-start; }
  .services-header .section-p { text-align: left !important; max-width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc-card.wide { grid-column: span 2; }

  /* How We Work */
  .hww-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hww-steps::before { display: none; }
  .hww-step { padding: 0 1rem; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid .testi-card:last-child { grid-column: span 2; }

  /* Gallery carousel */
  .g-item { flex: 0 0 48vw; height: 400px; }

  /* Footer */
  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-hero-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .ft-tagline { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; }
  .ft-logo img { height: 74px; }
}

/* ── Mobile  (max 640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  /* Container tighter on small screens */
  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }

  /* Section padding: 4rem on mobile */
  .services, .how-we-work, .testimonials,
  .about, .gallery, .contact { padding-top: 4rem; padding-bottom: 4rem; }
  .cta-banner { padding-bottom: 4rem; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-inner { padding: 2.5rem 0; gap: 2rem; }
  .hero-title { font-size: clamp(2.2rem, 12vw, 3.2rem); margin-bottom: 1.25rem; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .hero-trust { gap: 1rem; padding-top: 1.5rem; }
  .hero-form-card { padding: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }

  /* Stats — horizontal infinite carousel on mobile */
  .stats-band { overflow: hidden; }
  .stats-inner {
    display: flex;
    width: max-content;
    animation: stats-scroll 10s linear infinite;
  }
  .stat-clone { display: flex; flex-direction: column; }
  .stat {
    flex: 0 0 55vw;
    border-right: 1px solid rgba(0,0,0,0.15);
    border-top: none !important;
    padding: 0.75rem 1.5rem;
  }
  @keyframes stats-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .svc-card.wide { grid-column: span 1; }

  /* How We Work */
  .hww-steps { grid-template-columns: 1fr; gap: 0; }
  .hww-header { margin-bottom: 2.5rem; }
  .hww-step {
    display: flex; flex-direction: row; align-items: flex-start;
    gap: 1.25rem; text-align: left;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hww-step:last-child { border-bottom: none; }
  .step-num {
    width: 44px; height: 44px; font-size: 0.875rem;
    flex-shrink: 0; margin: 0;
  }
  .step-title { margin-bottom: 0.35rem; font-size: 0.95rem; }
  .step-desc { font-size: 0.8rem; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid .testi-card:last-child { grid-column: span 1; }
  .testi-header { margin-bottom: 2.5rem; }
  .testimonials { background-size: 60%; }

  /* About */
  .about-image-wrap img { height: 280px; }
  .about-badge { right: 0.5rem; bottom: 1rem; padding: 1rem 1.25rem; }
  .about-badge-n { font-size: 2rem; }

  /* Gallery */
  .gallery { padding-top: 4rem; }
  .gallery-header { margin-bottom: 2rem; }
  .g-item { flex: 0 0 80vw; height: 320px; }

  /* CTA banner */
  .cta-banner .section-h { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .cta-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .cta-actions .btn-primary { width: 100%; justify-content: center; }

  /* Contact */
  .cf-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }

  /* Footer */
  .footer-hero { padding: 2.5rem 0; }
  .ft-logo img { height: 64px; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2.5rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .ft-legal { gap: 1.25rem; }
}

/* ── Small phones  (max 420px) ───────────────────────────────── */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .g-item { flex: 0 0 90vw; height: 280px; }
  .stat { flex: 0 0 70vw; }
  .trust-item { font-size: 0.7rem; }
  .section-h { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}


/* ================================================================
   INTERIOR PAINTING PAGE STYLES
   ================================================================ */

/* ── Interior Hero ──────────────────────────────────────────── */
.ip-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.55) 100%),
    url('Interior-Painting-bg.png') center/cover no-repeat;
}

.ip-hero-inner {
  padding: 6rem 0 5rem;
  max-width: 780px;
}

.ip-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.ip-breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.ip-breadcrumb a:hover { color: var(--accent); }
.ip-breadcrumb svg { opacity: 0.5; }

.ip-hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.ip-hero-title .accent { color: var(--accent); }

.ip-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 600px;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.ip-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: border-color 0.25s, background 0.25s;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(215,223,35,0.08);
}

/* ── Intro section ──────────────────────────────────────────── */
.ip-intro {
  padding: 7rem 0;
  background: #fff;
}

.ip-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ip-intro-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}

.ip-intro-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
}

.ip-intro-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: var(--r-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(215,223,35,0.35);
}

.ip-intro-content .section-h { color: #0a0a0a; }
.ip-intro-content .section-p { color: #555; }

.ip-intro-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.ip-feat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
}

.ip-feat svg {
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(215,223,35,0.12);
  padding: 3px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

/* ── Why Choose AJM ─────────────────────────────────────────── */
.ip-why {
  padding: 7rem 0;
  background-color: var(--bg);
  background-image: url('Bg_for section_light.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 20%;
}

.ip-why-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}

.ip-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ip-why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

.ip-why-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-4px);
}

.ip-why-card .svc-icon { color: var(--accent); }
.ip-why-card .svc-name { color: #fff; }
.ip-why-card .svc-desc { color: rgba(255,255,255,0.6); margin-bottom: 0; }

/* ── What We Paint ──────────────────────────────────────────── */
.ip-what {
  padding: 7rem 0;
  background: #f9f9f9;
}

.ip-what-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.ip-what-header .section-h { color: #0a0a0a; }
.ip-what-header .section-p { color: #666; }

.ip-what-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ip-what-item {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}

.ip-what-item:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.ip-what-img {
  height: 200px;
  overflow: hidden;
}

.ip-what-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.ip-what-item:hover .ip-what-img img { transform: scale(1.05); }

.ip-what-body {
  padding: 1.5rem;
}

.ip-what-body .svc-name { color: #0a0a0a; margin-bottom: 0.6rem; }
.ip-what-body .svc-desc { color: #666; font-size: 0.85rem; }

/* ── Process (re-uses how-we-work styles) ───────────────────── */
.ip-process {
  background:
    linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
    url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=1800&auto=format&q=80') center/cover no-repeat;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.ip-faq {
  padding: 7rem 0;
  background: #fff;
}

.ip-faq-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.ip-faq-header .section-h { color: #0a0a0a; }
.ip-faq-header .section-p { color: #666; }

.ip-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}

.faq-item.open {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: rgba(215,223,35,0.5);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0a0a;
  text-align: left;
  transition: color 0.2s;
}

.faq-item.open .faq-q { color: var(--accent-h); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.8;
}

/* ── CTA phone link ─────────────────────────────────────────── */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.cta-phone:hover { color: var(--accent); }


/* ── Interior Page — Responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  .ip-what-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-why-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ip-intro-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ip-intro-image { order: -1; }
  .ip-intro-image img { height: 380px; }
  .ip-intro-badge { right: 1rem; bottom: -1rem; }
  .ip-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .ip-intro { padding: 5rem 0; }
  .ip-why { padding: 5rem 0; }
  .ip-what { padding: 5rem 0; }
  .ip-faq { padding: 5rem 0; }
}

@media (max-width: 640px) {
  .ip-hero { min-height: 80vh; }
  .ip-hero-inner { padding: 4rem 0 3.5rem; }
  .ip-hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .ip-hero-desc { font-size: 0.875rem; }
  .ip-hero-actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .ip-hero-actions .btn-primary,
  .ip-hero-actions .btn-outline { width: 100%; justify-content: center; }
  .ip-why-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ip-what-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .ip-what-img { height: 150px; }
  .ip-faq-list { gap: 0.5rem; }
  .faq-q { font-size: 0.875rem; padding: 1rem 1.25rem; }
  .faq-a p { padding: 0 1.25rem 1.25rem; }
  .ip-intro-image img { height: 280px; }
}

@media (max-width: 420px) {
  .ip-what-grid { grid-template-columns: 1fr; }
}


.disply_flex{
	display:flex!important;
}