/* ============================================================
   Pymer Plastering, Inc — Main Stylesheet
   ============================================================ */

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

:root {
  --color-primary:   #2C3E50;
  --color-accent:    #B8860B;
  --color-accent-lt: #D4A017;
  --color-light:     #F5F2EE;
  --color-white:     #FFFFFF;
  --color-text:      #333333;
  --color-muted:     #666666;
  --color-border:    #DDD8D0;
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', 'Segoe UI', Arial, sans-serif;
  --shadow-sm:       0 2px 8px rgba(0,0,0,.08);
  --shadow-md:       0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.18);
  --radius:          8px;
  --transition:      0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary);
}

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

/* --- Utility --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

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

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.section-divider.left {
  margin-left: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-accent-lt);
  border-color: var(--color-accent-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}

.navbar-brand .brand-tagline {
  font-size: 0.7rem;
  color: var(--color-accent-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-lt);
  transition: width var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a:hover::after {
  color: var(--color-white);
  width: 100%;
}

.navbar-cta {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 62, 80, 0.82) 0%,
    rgba(44, 62, 80, 0.55) 60%,
    rgba(184, 134, 11, 0.25) 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184,134,11,0.25);
  border: 1px solid rgba(212,160,23,0.5);
  color: var(--color-accent-lt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

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

.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent-lt);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: 6rem 0;
  background: var(--color-light);
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-body {
  padding: 1.6rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,134,11,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: 6rem 0;
  background: var(--color-white);
}

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

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

.about-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.about-badge .badge-text {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-content .section-label,
.about-content .section-title {
  text-align: left;
}

.about-content p {
  color: var(--color-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

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

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.about-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--color-accent);
}

.owner-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  font-weight: 700;
}

.owner-info strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
}

.owner-info span {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  padding: 5rem 0;
  background: var(--color-light);
}

.map-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.map-wrapper {
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

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

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: 6rem 0;
  background: var(--color-primary);
}

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

.contact-info .section-label {
  color: var(--color-accent-lt);
}

.contact-info .section-title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.contact-details .detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(184,134,11,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details .detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent-lt);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-details a {
  color: var(--color-accent-lt);
  transition: color var(--transition);
}

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

/* --- Form --- */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: calc(var(--radius) * 2);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrap h3 {
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.contact-form-wrap .form-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.8rem;
}

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

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background: var(--color-accent-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

#form-success .success-icon {
  width: 64px;
  height: 64px;
  background: rgba(184,134,11,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

#form-success .success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#form-success h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

#form-success p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1a252f;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
}

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

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

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

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrap img {
    height: 380px;
  }

  .about-badge {
    right: 1rem;
    bottom: -1rem;
  }

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

  .hero-stats {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }

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

  .navbar-nav li {
    width: 100%;
  }

  .navbar-nav a {
    display: block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .navbar-nav a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .hero-content {
    padding: 7rem 0 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}
