/* ============================================================
   PromiseDoor - Main Stylesheet
   Color Palette: Slate & Saffron
   ============================================================ */

:root {
  --dark: #1A1D24;
  --accent: #E0883E;
  --accent-hover: #C57430;
  --accent-light: #F5D5B0;
  --green: #6B8E7B;
  --green-dark: #4A6B5A;
  --green-light: #8BA89A;
  --bg: #FCFAF5;
  --bg-alt: #F5F2EB;
  --text: #2C3038;
  --text-muted: #6B717D;
  --white: #FFFFFF;
  --border: #E5E0D8;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION - class selector only
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-brand span {
  color: var(--accent);
}

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

.nav-links a {
  color: #C5C9D0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--white);
}

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

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

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION - class selector
   ============================================================ */
.hero-section {
  padding: 160px 24px 100px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(224,136,62,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(107,142,123,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section .hero-badge {
  display: inline-block;
  background: rgba(224,136,62,0.15);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}

.hero-section h1 span {
  color: var(--accent);
}

.hero-section .hero-subtitle {
  font-size: 19px;
  color: #B0B5BE;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-section .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  gap: 8px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,136,62,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-secondary {
  background: var(--green);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ============================================================
   ABOUT SECTION - class selector
   ============================================================ */
.about-section {
  padding: 100px 24px;
  background: var(--bg);
}

.about-section .section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-section .section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.about-section .section-text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 50px auto 0;
  align-items: center;
}

.about-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.about-stat .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   SERVICES SECTION - class selector
   ============================================================ */
.services-section {
  padding: 100px 24px;
  background: var(--dark);
  color: var(--white);
}

.services-section .section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.services-section .section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.5px;
}

.services-section .section-desc {
  font-size: 17px;
  color: #A5ABB5;
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #242830;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid #2E323A;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(224,136,62,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  font-size: 15px;
  color: #959CA8;
  line-height: 1.7;
}

/* ============================================================
   FEATURES SECTION - class selector
   ============================================================ */
.features-section {
  padding: 100px 24px;
  background: var(--bg);
}

.features-section .section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.features-section .section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.5px;
}

.features-section .section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-item .feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   CTA SECTION - class selector
   ============================================================ */
.cta-section {
  padding: 90px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #D4762A 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(0,0,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 18px;
  color: #FEF5EC;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-section .btn-outline {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255,255,255,0.5);
}

.cta-section .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   CONTACT SECTION - class selector
   ============================================================ */
.contact-section {
  padding: 100px 24px;
  background: var(--bg-alt);
}

.contact-section .section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.contact-section .section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.5px;
}

.contact-section .section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 50px;
  text-align: center;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.contact-info-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-item p {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

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

.form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  color: var(--green-dark);
}

.form-status.error {
  color: #C0392B;
}

/* ============================================================
   FOOTER - class selector
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: #959CA8;
  padding: 60px 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid #2E323A;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: #8A909C;
}

.footer-links h4 {
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #8A909C;
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #6B717D;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   SCROLL REVEAL (fade-up)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4px;
}

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

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

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 16px;
    display: block;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section .hero-subtitle {
    font-size: 16px;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-section .section-title,
  .services-section .section-title,
  .features-section .section-title,
  .contact-section .section-title {
    font-size: 30px;
  }

  .cta-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 130px 16px 70px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .about-visual {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
  }

  .about-stat .stat-number {
    font-size: 26px;
  }

  .contact-form {
    padding: 24px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
