/* Services layout inspired by provided snippet */
.service {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.service:nth-child(even) {
  flex-direction: row-reverse;
}
.service img {
  width: 50%;
  height: 18rem;
  object-fit: cover;
  border-radius: 10px;
}
.service-text {
  width: 50%;
}
.service-text h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
}
.service-text p {
  color: var(--mutedText);
  line-height: 1.7;
}
.cta-wrap {
  text-align: center;
  margin-top: 80px;
}
@media (max-width: 768px) {
  .service,
  .service:nth-child(even) {
    flex-direction: column;
  }
  .service img,
  .service-text {
    width: 100%;
  }
}
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

/* Base theme: token variables from provided palette (HSL) */
:root {
  --background: 40 20% 97%;
  --foreground: 150 15% 15%;
  --card: 40 15% 95%;
  --card-foreground: 150 15% 15%;
  --popover: 40 20% 97%;
  --popover-foreground: 150 15% 15%;
  --primary: 152 35% 25%;
  --primary-foreground: 40 20% 97%;
  --secondary: 38 25% 88%;
  --secondary-foreground: 150 15% 15%;
  --muted: 40 15% 92%;
  --muted-foreground: 150 10% 45%;
  --accent: 38 50% 50%;
  --accent-foreground: 40 20% 97%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 40 15% 88%;
  --input: 40 15% 88%;
  --ring: 152 35% 25%;
  --radius: 0.375rem;
  --earth: 30 30% 35%;
  --earth-foreground: 40 20% 97%;
  --leaf: 120 30% 40%;
  --leaf-light: 120 25% 92%;
  --warm: 38 40% 55%;

  /* Derived variables used in this CSS */
  --bg: hsl(var(--background));
  --surface: hsl(var(--card));
  --text: hsl(var(--foreground));
  --mutedText: hsl(var(--muted-foreground));
  --mutedBg: hsl(var(--muted));
  --primaryCol: hsl(var(--primary));
  --primaryFg: hsl(var(--primary-foreground));
  --accentCol: hsl(var(--accent));
  --accentFg: hsl(var(--accent-foreground));
  --borderCol: hsl(var(--border));
  --secondaryBg: hsl(var(--secondary));
  --ringCol: hsl(var(--ring));
}

.dark {
  --background: 150 15% 8%;
  --foreground: 40 20% 95%;
  --card: 150 15% 12%;
  --card-foreground: 40 20% 95%;
  --popover: 150 15% 8%;
  --popover-foreground: 40 20% 95%;
  --primary: 152 35% 45%;
  --primary-foreground: 150 15% 8%;
  --secondary: 150 10% 18%;
  --secondary-foreground: 40 20% 95%;
  --muted: 150 10% 18%;
  --muted-foreground: 40 10% 60%;
  --accent: 38 50% 50%;
  --accent-foreground: 150 15% 8%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 150 10% 20%;
  --input: 150 10% 20%;
  --ring: 152 35% 45%;
  --earth: 30 20% 55%;
  --earth-foreground: 150 15% 8%;
  --leaf: 120 30% 50%;
  --leaf-light: 120 15% 15%;
  --warm: 38 40% 55%;
}

/* Reset & base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    Segue UI,
    Roboto,
    Ubuntu,
    "Noto Sans",
    sans-serif;
}
a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  opacity: 0.9;
}
img {
  max-width: 100%;
  display: block;
}

/* Form & contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.form {
  display: grid;
  gap: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.input,
.select,
.textarea {
  margin: 6px 0 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--borderCol);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.textarea {
  resize: vertical;
}
.form label {
  font-weight: 600;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ringCol);
  box-shadow: 0 0 0 3px rgba(36, 124, 90, 0.12);
}
.btn.full {
  width: 100%;
}

/* Contact form polish */
.form-title {
  margin: 0 0 8px;
  font-size: 22px;
}
.form-elevated {
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}
/* Minimal inline error styling */
.field-error {
  color: hsl(var(--destructive));
  font-size: 13px;
  margin-top: -4px;
  display: none;
}
.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: hsl(var(--destructive));
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
/* Red asterisk for required labels */
.req {
  color: hsl(var(--destructive));
  margin-left: 4px;
  font-weight: 700;
}
/* Success message banner */
.form-success {
  background: var(--leaf-light);
  border: 1px solid hsl(var(--leaf));
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  display: none;
}
/* Red error banner shown after submit when validation fails */
.form-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid hsl(var(--destructive));
  color: hsl(var(--destructive));
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 0;
  display: none;
}
.form-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accentCol);
  color: var(--accentFg);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.form-banner .banner-icon {
  font-size: 20px;
}
.input-group {
  position: relative;
}
.input-group .input,
.input-group .select,
.input-group .textarea {
  padding-left: 36px;
}
.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mutedText);
  pointer-events: none;
}
.input-group.textarea .input-icon {
  top: 18px;
}
.divider {
  border: 0;
  height: 1px;
  background: var(--borderCol);
  margin: 8px 0 12px;
}

/* Contact themed pieces */
.contact-card {
  align-self: start;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--mutedBg);
  color: var(--text);
  border: 1px solid var(--borderCol);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

/* Headings use display font */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 800px;
}
.center {
  text-align: center;
}
.mt-lg {
  margin-top: 24px;
}
.mt-md {
  margin-top: 18px;
}
.mt-sm {
  margin-top: 8px;
}
/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--borderCol);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primaryCol);
  .brand-logo {
    height: 55px;
  }
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  color: var(--mutedText);
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--primaryCol);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--borderCol);
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary {
  background: var(--primaryCol) !important;
  color: var(--primaryFg) !important;
}

/* Hero */
main {
  padding-top: 64px;
}
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero-content {
  position: relative;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  margin: 0 0 12px;
  color: #fff;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 18px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-muted {
  background: var(--secondaryBg);
}
.section-primary {
  background: var(--primaryCol);
  color: var(--primaryFg);
}
.section-title {
  font-size: 32px;
  margin: 0 0 12px;
}
.section-subtitle {
  color: var(--mutedText);
  margin: 0 0 28px;
}
.section-title.invert {
  color: var(--primaryFg);
}

/* Grid */
.grid {
  display: grid;
  gap: 18px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--borderCol);
  padding: 20px;
  border-radius: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1);
}
.service-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
.service-row.reverse {
  flex-direction: row-reverse;
}
.service-image,
.service-content {
  flex: 1;
}
.service-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}
.service-title {
  font-size: 28px;
  margin: 0 0 8px;
}
.service-desc {
  color: var(--mutedText);
  line-height: 1.6;
}
@media (max-width: 960px) {
  .service-row,
  .service-row.reverse {
    flex-direction: column;
  }
}
/* Simple fade-up animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  color: var(--mutedText);
  margin: 0;
}

/* Before/After block */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.before-after {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accentFg);
  color: var(--text);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}
.badge-primary {
  background: var(--primaryCol);
  color: var(--primaryFg);
}
.muted {
  color: var(--mutedText);
  font-size: 14px;
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: var(--primaryCol);
  color: var(--primaryFg);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 24px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
}
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.invert {
  color: var(--primaryFg);
}
.invert-muted {
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
