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

:root {
  --terracotta: #C2704E;
  --terracotta-dark: #A85A3A;
  --terracotta-light: #D4916F;
  --sand: #F5EDE4;
  --sand-light: #FAF6F1;
  --sand-dark: #E8DDD2;
  --cream: #FFFDF9;
  --text-dark: #2D2420;
  --text-mid: #5C4A3A;
  --text-light: #8A7565;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(45,36,32,0.06);
  --shadow-md: 0 4px 20px rgba(45,36,32,0.08);
  --shadow-lg: 0 8px 40px rgba(45,36,32,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.2; }

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

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--terracotta); border-color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; padding: 16px 32px; }

/* ── Section Tags & Titles ── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.063rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,253,249,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194,112,78,0.08);
  transition: var(--transition);
}
.header.scrolled { background: rgba(255,253,249,0.95); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-list a {
  padding: 8px 16px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.nav-list a:hover { color: var(--terracotta); background: rgba(194,112,78,0.06); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger { position: relative; }
.hamburger::before { content: ''; position: absolute; top: -7px; left: 0; }
.hamburger::after { content: ''; position: absolute; top: 7px; left: 0; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(45,36,32,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

.nav-overlay-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  min-width: 280px;
}
.nav-overlay.open .nav-overlay-inner { transform: translate(-50%, -50%) scale(1); }

.nav-overlay-link {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  padding: 12px 0;
  transition: var(--transition);
}
.nav-overlay-link:hover { color: var(--terracotta); }
.nav-overlay-contact { margin-top: 24px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,36,32,0.65) 0%, rgba(45,36,32,0.35) 60%, rgba(194,112,78,0.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 76px;
  max-width: 720px;
  padding-bottom: 60px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.188rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--white);
}
.stat-label {
  font-size: 0.813rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Services ── */
.services {
  padding: 100px 0;
  background: var(--sand-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194,112,78,0.15);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--terracotta); }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.service-desc {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── About ── */
.about { padding: 100px 0; background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images { position: relative; }
.about-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-main img { width: 100%; height: 450px; object-fit: cover; }
.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}
.about-img-secondary img { width: 100%; height: 200px; object-fit: cover; }
.about-accent {
  position: absolute;
  top: -20px;
  right: 40px;
  opacity: 0.4;
}
.about-text {
  font-size: 1.063rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 32px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-dark);
}
.check-icon { flex-shrink: 0; }
.about-content .btn { margin-top: 8px; }

/* ── Projects ── */
.projects {
  padding: 100px 0;
  background: var(--sand-light);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,36,32,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
}
.project-tag {
  display: inline-block;
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--terracotta);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  width: fit-content;
  margin-bottom: 8px;
}
.project-title {
  font-size: 1.375rem;
  color: var(--white);
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194,112,78,0.88) 0%, rgba(168,90,58,0.92) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text {
  font-size: 1.063rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-outline-light { border-color: rgba(255,255,255,0.7); }
.cta-actions .btn-outline-light:hover { background: var(--white); color: var(--terracotta); }

/* ── Contact ── */
.contact { padding: 100px 0; background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text {
  font-size: 1.063rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-md);
}
.contact-item strong {
  display: block;
  font-size: 0.813rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-item p { font-size: 0.938rem; color: var(--text-dark); line-height: 1.6; }
.contact-item a { color: var(--terracotta); font-weight: 500; transition: var(--transition); }
.contact-item a:hover { color: var(--terracotta-dark); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ── Form ── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand-dark);
}
.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.form-subtitle {
  font-size: 0.938rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.938rem;
  color: var(--text-dark);
  background: var(--sand-light);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(194,112,78,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success p {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-tagline {
  margin-top: 16px;
  font-size: 0.938rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,0.5);
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.938rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--terracotta-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.813rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .about-img-secondary { right: -20px; bottom: -24px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header .btn-primary { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .hero-content { padding-top: 100px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-stat-divider { width: 40px; height: 1px; }

  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .about { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-img-main img { height: 320px; }
  .about-img-secondary { right: 0; bottom: -20px; }
  .about-features { grid-template-columns: 1fr; }

  .projects { padding: 72px 0; }
  .projects-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 60px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .contact { padding: 72px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 28px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
