/* ================================================================
   ZAILANI PAINTWORKS — style.css
   Palette:
     --navy      #0D1B2A   (authority, dark base)
     --cream     #F8F6F1   (warm white, backgrounds)
     --amber     #C8850A   (brushstroke accent)
     --amber-lt  #E5A424   (hover states)
     --mid       #6B7280   (body text secondary)
     --off-white #EEE9E0   (card backgrounds)
     --dark-text #1A2636   (headings on light)
================================================================ */

/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: #1A2636;
  background: #F8F6F1;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

address { font-style: normal; }

ul { list-style: none; }

/* ─── TOKENS ────────────────────────────────────────────────────── */
:root {
  --navy:      #0D1B2A;
  --cream:     #F8F6F1;
  --amber:     #C8850A;
  --amber-lt:  #E5A424;
  --mid:       #6B7280;
  --off-white: #EEE9E0;
  --dark-text: #1A2636;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 40px rgba(13,27,42,0.16);
  --transition: 0.25s ease;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--dark-text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

em { font-style: italic; color: var(--amber); }

p { color: #374151; margin-bottom: 0.9rem; }

/* ─── UTILITIES ─────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-intro {
  margin: 0 auto;
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}

.btn--primary {
  background: var(--amber);
  color: #fff;
}
.btn--primary:hover {
  background: var(--amber-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,133,10,0.35);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn--nav {
  background: var(--amber);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.85rem;
}
.btn--nav:hover { background: var(--amber-lt); }

.btn--full { width: 100%; }

.link-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber);
  transition: letter-spacing var(--transition);
}
.link-arrow:hover { letter-spacing: 0.04em; }

/* ─── IMAGE PLACEHOLDERS ────────────────────────────────────────── */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--off-white) 0%, #ddd8ce 100%);
  border: 2px dashed #b8b0a4;
  z-index: 0;
}

.ph-label,
.img-placeholder span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8a7f76;
  text-align: center;
  line-height: 1.5;
  padding: 12px;
}

/* ─── NAVIGATION ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--amber);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.logo-text em {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2e42 0%, #0d1b2a 60%, #1c2e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hero-placeholder .ph-label {
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,27,42,0.82) 0%,
    rgba(13,27,42,0.55) 55%,
    rgba(13,27,42,0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.hero-headline {
  color: #fff;
  margin-bottom: 24px;
}

.hero-headline em {
  color: var(--amber);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stroke {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-stroke svg { width: 100%; height: 80px; }

/* ─── TRUST BAR ─────────────────────────────────────────────────── */
.trust-bar {
  background: var(--cream);
  padding: 48px 0;
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 48px;
}

.trust-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 56px;
  background: #d4cfc9;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-img-wrap img {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.04);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.service-body p {
  font-size: 0.875rem;
  color: var(--mid);
  flex: 1;
  margin-bottom: 16px;
}

/* ─── ABOUT ─────────────────────────────────────────────────────── */
.about {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.about-stroke,
.about-stroke--bottom {
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  line-height: 0;
}

.about-stroke { top: -1px; }
.about-stroke--bottom { bottom: -1px; }

.about-stroke svg,
.about-stroke--bottom svg { width: 100%; height: 80px; }

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.about-media { position: relative; }

.about-img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 520px;
  box-shadow: var(--shadow-lg);
}

.about-img-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.about-ph { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.about-ph span { color: rgba(255,255,255,0.45); }

.about-accent-card {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--amber);
  color: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.accent-stat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: rgba(255,255,255,0.7);
}

.accent-year {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0;
}

.accent-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin: 4px 0 0;
}

.about-copy .section-eyebrow { color: var(--amber); }
.about-copy .section-title { color: #fff; }
.about-copy p { color: rgba(255,255,255,0.72); }

.about-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}

.check {
  width: 22px;
  height: 22px;
  background: rgba(200,133,10,0.2);
  border: 1px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--amber);
  flex-shrink: 0;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 260px;
  background: #ccc;
}

.gallery-item--tall {
  grid-row: 1 / 3;
  height: 100%;
  min-height: 536px;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.45s ease;
}

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

.gal-ph { border-color: #b8b0a4; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p { color: var(--mid); margin-bottom: 36px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.contact-details a {
  color: var(--dark-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-details a:hover { color: var(--amber); }

.contact-details address {
  color: var(--dark-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── FORM ──────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #ddd8d0;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark-text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200,133,10,0.12);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* ─── SITE FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .logo-mark { width: 38px; height: 38px; font-size: 0.85rem; }

.footer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.footer-uen {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--amber); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-frame { height: 380px; }
  .about-accent-card { bottom: -20px; right: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(13,27,42,0.97);
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
  }

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

  .nav {
    position: relative;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-content { padding-top: 100px; }

  .hero-cta { flex-direction: column; }

  .trust-grid { gap: 0; }
  .trust-item { padding: 16px 24px; }
  .trust-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .gallery-item--tall {
    grid-column: 1 / 3;
    grid-row: unset;
    min-height: 280px;
    height: 280px;
  }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .about-grid { padding-top: 32px; padding-bottom: 32px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--tall { grid-column: auto; }
  .trust-grid { flex-direction: column; }
}

/* ─── REDUCED MOTION ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
