/* ============================================================
   TB Painting Services, Inc — Wallpaper Installation Website
   style.css
   ============================================================ */

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

:root {
  --navy:       #0d2340;
  --navy-mid:   #163a60;
  --blue-accent:#1e5fa8;
  --gold:       #c9a84c;
  --white:      #ffffff;
  --off-white:  #f5f6f8;
  --light-gray: #e8eaed;
  --mid-gray:   #6b7280;
  --dark-gray:  #374151;
  --text:       #1f2937;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,35,64,.12);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

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

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

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

.section-subtitle {
  color: var(--mid-gray);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8922e;
  border-color: #b8922e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,35,64,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo .brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .02em;
}

.nav-logo .tagline {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: .55rem 1.4rem;
  font-size: .88rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,35,64,.88) 0%,
    rgba(13,35,64,.65) 60%,
    rgba(13,35,64,.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 8rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item { text-align: left; }

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- Services ---------- */
#services {
  padding: 6rem 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(13,35,64,.16);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .9rem;
  color: var(--mid-gray);
  line-height: 1.65;
}

/* ---------- About ---------- */
#about {
  padding: 6rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: 16px;
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-badge .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.about-badge .lbl {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.about-text .section-subtitle {
  margin-bottom: 1.5rem;
}

.about-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--dark-gray);
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--navy);
  stroke-width: 2.5;
  fill: none;
}

/* ---------- Gallery ---------- */
#gallery {
  padding: 6rem 0;
  background: var(--off-white);
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item:first-child img { height: 380px; }

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

/* ---------- Map ---------- */
#map-section {
  padding: 6rem 0;
  background: var(--white);
}

.map-wrapper {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* ---------- Contact ---------- */
#contact {
  padding: 6rem 0;
  background: var(--navy);
}

#contact .section-title { color: var(--white); }
#contact .section-subtitle { color: rgba(255,255,255,.65); }
#contact .section-label { color: var(--gold); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2.5rem;
}

#wallpaperContactForm {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

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

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: .4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  font-size: .95rem;
  color: var(--white);
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}

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

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-top: .5rem;
}

#form-success {
  display: none;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: #4ade80;
  font-weight: 600;
  font-size: 1.05rem;
}

/* Contact Info */
.contact-info h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  font-size: .95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text .label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: .2rem;
}

.contact-item-text a,
.contact-item-text span {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  transition: color var(--transition);
}

.contact-item-text a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
footer {
  background: #07172a;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

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

.footer-inner p {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  transition: color var(--transition);
}

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

/* ---------- Scroll-to-top ---------- */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201,168,76,.4);
  transition: var(--transition);
  z-index: 999;
}

#scrollTop:hover { background: #b8922e; transform: translateY(-3px); }

#scrollTop svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn .6s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap img { height: 360px; }
  .about-badge { right: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .hero-stats { gap: 1.5rem; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:first-child {
    grid-column: span 2;
  }

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

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
