/* ===== PRO QUALITY EXTERIORS - Evergreen Craft ===== */

/* --- Design Tokens --- */
:root {
  --green: #1a4d1a;
  --green-light: #2a6e2a;
  --green-dark: #0f3010;
  --green-tint: #e8f0e8;
  --amber: #c49a3d;
  --amber-light: #d4ae5c;
  --dark: #111810;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --cream: #f6f4ef;
  --white: #ffffff;
  --gray: #e0ddd6;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(17, 24, 16, 0.08);
  --shadow-lg: 0 8px 32px rgba(17, 24, 16, 0.12);
  --transition: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--green-light); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
ul, ol { list-style: none; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--green);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 500;
  transition: top 150ms ease;
}
.skip-link:focus { top: 16px; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--dark);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { max-width: 68ch; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  display: block;
}

.section-label--light { color: var(--amber-light); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--green {
  background: var(--green);
  color: var(--white);
}
.section--green h2, .section--green h3, .section--green h4 { color: var(--white); }
.section--green p { color: rgba(255,255,255,0.88); }
.section--dark {
  background: var(--dark);
  color: var(--white);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.85); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  min-height: 48px;
  text-align: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-light); color: var(--white); }

.btn--amber {
  background: var(--amber);
  color: var(--white);
}
.btn--amber:hover { background: var(--amber-light); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--green); }

.btn--outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn--outline-green:hover { background: var(--green); color: var(--white); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 300ms ease;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo img {
  height: 48px;
  width: auto;
}
.header__logo span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  display: none;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color 150ms ease, background 150ms ease;
}
.nav a:hover { color: var(--green); background: var(--green-tint); }
.nav a.active { color: var(--green); font-weight: 600; }

.nav__cta {
  margin-left: 8px;
  padding: 10px 20px !important;
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--green-light) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 48, 16, 0.92) 0%, rgba(26, 77, 26, 0.78) 50%, rgba(17, 24, 16, 0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 60px 20px;
}
.hero__content h1 { color: var(--white); margin-bottom: 20px; }
.hero__content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 140px 0 60px;
  background: var(--green);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='0.04'%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");
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 600px; }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__img {
  height: 220px;
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body {
  padding: 24px;
}
.service-card__body h3 { margin-bottom: 10px; }
.service-card__body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.service-card__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card__link::after {
  content: '\2192';
  transition: transform 150ms ease;
}
.service-card__link:hover::after { transform: translateX(4px); }

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--green-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-item h4 { margin-bottom: 6px; }
.why-item p { color: var(--text-light); font-size: 0.93rem; line-height: 1.6; }

/* --- Testimonial --- */
.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 6rem;
  color: var(--green-tint);
  position: absolute;
  top: 12px;
  left: 28px;
  line-height: 1;
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}
.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--amber);
}
.testimonial-card__name {
  font-weight: 600;
  color: var(--dark);
}
.testimonial-card__source {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Trust/Warranty Banner --- */
.trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
}
.trust-item__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}
.trust-item__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* --- Service Detail Cards --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }
.service-detail__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-detail__img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.service-detail__content h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.service-detail__content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.75;
}
.key-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.key-point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-tint);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.key-point svg {
  width: 14px;
  height: 14px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
}

/* --- About --- */
.about-content {
  max-width: 760px;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
}
.value-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  margin-top: 2px;
}
.value-item p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 20px; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}
.contact-info__text strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.contact-info__text span, .contact-info__text a {
  font-size: 0.95rem;
  color: var(--text-light);
}

.form { display: flex; flex-direction: column; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 77, 26, 0.12);
}
.form textarea { resize: vertical; min-height: 120px; }

#form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  display: none;
}
#form-status.success {
  display: block;
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid var(--green);
}
#form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 20px;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.88); margin: 0 auto 28px; }
.cta-section .btn { font-size: 1.05rem; padding: 16px 36px; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer__brand img { height: 44px; margin-bottom: 12px; }
.footer__brand p { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }

.footer__links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer__links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 150ms ease;
}
.footer__links a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}
.footer__social a:hover { background: var(--green); }
.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--white); }

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  opacity: 0;
  transform: translateX(-32px);
}
.reveal--left.visible { transform: translateX(0); }
.reveal--right {
  opacity: 0;
  transform: translateX(32px);
}
.reveal--right.visible { transform: translateX(0); }

.stagger > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* Hero animations */
.hero__content h1 {
  animation: fadeSlideUp 700ms var(--ease) both;
}
.hero__content p {
  animation: fadeSlideUp 700ms var(--ease) 150ms both;
}
.hero__actions {
  animation: fadeSlideUp 700ms var(--ease) 300ms both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    padding: 80px 24px 24px;
    gap: 4px;
    z-index: 105;
  }
  .nav.open a { padding: 12px 16px; font-size: 1.05rem; }
  .nav.open .nav__cta { margin-left: 0 !important; margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail--reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .trust-banner { gap: 32px; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { min-height: 75vh; }
  .hero__content { padding: 40px 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .testimonial-card { padding: 28px 20px; }
  .testimonial-card::before { font-size: 4rem; top: 8px; left: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 48px; }
  .cta-section { padding: 56px 20px; }
  .trust-banner { flex-direction: column; gap: 24px; }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visible for keyboard users */
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
*:focus:not(:focus-visible) {
  outline: none;
}
