/* ============================================
   REES PLASTERING — Styles
   Classic, elegant, refined serif palette
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --forest: #2D5A3D;
  --forest-deep: #1E3F2A;
  --forest-light: #3D7A52;
  --forest-muted: #4A6B52;
  --cream: #F5F0E8;
  --cream-light: #FAF7F2;
  --cream-dark: #E8E0D0;
  --warm-gray: #6B6560;
  --warm-gray-light: #9A9490;
  --charcoal: #2A2825;
  --white: #FFFFFF;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(45, 90, 61, 0.06), 0 1px 2px rgba(45, 90, 61, 0.04);
  --shadow-md: 0 4px 16px rgba(45, 90, 61, 0.08), 0 2px 4px rgba(45, 90, 61, 0.04);
  --shadow-lg: 0 12px 40px rgba(45, 90, 61, 0.12), 0 4px 12px rgba(45, 90, 61, 0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background-color: var(--cream-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 90, 61, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: -0.01em;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-gray);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--forest);
  background: rgba(45, 90, 61, 0.06);
}

.nav-cta {
  background: var(--forest) !important;
  color: var(--cream) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--forest-deep) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(45, 90, 61, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(61, 122, 82, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(30, 63, 42, 0.6) 0%, transparent 50%),
    linear-gradient(160deg, #1A3A25 0%, #2D5A3D 30%, #3D7A52 60%, #2A5A45 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.4);
}

.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(245, 240, 232, 0.1);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.btn-light:hover {
  background: var(--cream-dark);
  border-color: var(--cream-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.5);
}

.btn-outline-light:hover {
  background: rgba(245, 240, 232, 0.1);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--cream-light);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(45, 90, 61, 0.08);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 90, 61, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--forest);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--white);
}

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-eyebrow {
  text-align: left;
  margin-bottom: 12px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--warm-gray-light);
  letter-spacing: 0.02em;
}

/* ============================================
   WORK / GALLERY
   ============================================ */
.work {
  padding: 100px 0;
  background: var(--cream-light);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.work-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(30, 63, 42, 0.9) 0%, transparent 100%);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

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

.testimonial-card {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(45, 90, 61, 0.06);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 90, 61, 0.12);
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  opacity: 0.2;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

.testimonial-author {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
  font-style: italic;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(61, 122, 82, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(30, 63, 42, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #1A3A25 0%, #2D5A3D 50%, #3D7A52 100%);
  text-align: center;
  position: relative;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.7);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--cream-light);
}

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

.contact-info .section-eyebrow {
  text-align: left;
  margin-bottom: 12px;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.contact-item a,
.contact-item dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.5;
}

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

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(45, 90, 61, 0.06);
}

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

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream-light);
  color: var(--charcoal);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray-light);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(45, 90, 61, 0.08);
  border: 1px solid rgba(45, 90, 61, 0.15);
  border-radius: var(--radius);
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 8px;
}

.form-success svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--forest);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: rgba(245, 240, 232, 0.6);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
}

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

.footer-copy,
.footer-address {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.45);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.6);
  transition: var(--transition);
}

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.08);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: 90vh;
    padding: 100px 20px 60px;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }

  .about-content p {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .about-content .btn {
    display: block;
    text-align: center;
  }

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

  .work-item img {
    height: 260px;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info .section-eyebrow,
  .contact-info .section-title {
    text-align: center;
  }

  .contact-intro {
    text-align: center;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .services,
  .about,
  .work,
  .testimonials,
  .cta-banner,
  .contact {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .testimonial-card {
    padding: 28px 24px;
  }
}
