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

:root {
  --clr-bg: #FAF7F2;
  --clr-text: #1A1A1A;
  --clr-primary: #1C2331;
  --clr-accent: #CC6B49;
  --clr-accent-hover: #B55A3B;
  --clr-secondary: #2E5077;
  --clr-secondary-hover: #243F5F;
  --clr-light: #F0EBE3;
  --clr-card: #FFFFFF;
  --clr-border: #DDD8D0;
  --clr-muted: #5C5C5C;
  --clr-input-bg: #FFFFFF;
  --clr-input-border: #C5BFB6;
  --clr-success: #3A7D5C;
  --clr-white: #FFFFFF;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--clr-accent-hover);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--clr-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.125rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

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

.section-subtitle {
  color: var(--clr-muted);
  font-size: 1.125rem;
  max-width: 640px;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background-color: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: var(--clr-white);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--clr-accent);
  color: var(--clr-white);
  text-decoration: none;
}

/* ====== NAVIGATION ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--clr-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

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

.nav-logo:hover {
  text-decoration: none;
  color: var(--clr-white);
}

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

.nav-links a {
  color: #C8CBD1;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--clr-white);
  text-decoration: none;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--clr-accent);
  color: var(--clr-white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px;
}

.nav-cta:hover {
  background-color: var(--clr-accent-hover) !important;
}

.nav-cta::after {
  display: none !important;
}

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

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

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

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

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

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #2A3852 50%, #1C2331 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--clr-accent) 0%, transparent 70%);
  opacity: 0.08;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--clr-secondary) 0%, transparent 70%);
  opacity: 0.06;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--clr-white);
  font-size: 3.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

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

.hero-content p {
  color: #B0B6C0;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
}

.hero-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.hero-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-card h4 {
  color: var(--clr-white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.hero-card p {
  color: #8B92A0;
  font-size: 0.8125rem;
  margin: 0;
}

/* ====== SERVICES ====== */
.services {
  background-color: var(--clr-bg);
}

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

.services-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  background-color: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-light);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--clr-accent);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--clr-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ====== ABOUT ====== */
.about {
  background-color: var(--clr-white);
}

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

.about-image {
  background: linear-gradient(135deg, var(--clr-light) 0%, #E8E0D5 100%);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px dashed var(--clr-border);
  border-radius: 8px;
}

.about-image-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.about-image-text .icon-large {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--clr-secondary);
}

.about-content .section-tag {
  margin-bottom: 0.75rem;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.about-features {
  list-style: none;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.about-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--clr-primary);
  font-weight: 500;
}

.about-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background-color: var(--clr-accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ====== STATS ====== */
.stats {
  background-color: var(--clr-primary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  color: #9AA1B0;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ====== CONTACT ====== */
.contact {
  background-color: var(--clr-white);
}

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

.contact-info .section-tag {
  margin-bottom: 0.75rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--clr-muted);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .detail-icon {
  width: 48px;
  height: 48px;
  background-color: var(--clr-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  color: var(--clr-muted);
  font-size: 0.9375rem;
}

.contact-form-wrapper {
  background-color: var(--clr-light);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-form-wrapper h3 {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--clr-input-border);
  border-radius: 6px;
  background-color: var(--clr-input-bg);
  color: var(--clr-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(204,107,73,0.08);
}

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

.form-message {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #E8F5E9;
  color: var(--clr-success);
  border: 1px solid #C8E6C9;
}

.form-message.error {
  display: block;
  background-color: #FFF3F0;
  color: #C0392B;
  border: 1px solid #FFCDD2;
}

/* ====== FOOTER ====== */
.footer {
  background-color: var(--clr-primary);
  color: #9AA1B0;
  padding: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h3 {
  color: var(--clr-white);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

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

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  color: var(--clr-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #9AA1B0;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--clr-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--clr-accent);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section-padding {
    padding: 3.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--clr-primary);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.125rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

  .about-image {
    height: 280px;
  }

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

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

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

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

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

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

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

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