* { box-sizing: border-box; }

:root {
  --bg: #f2efe8;
  --bg-soft: #e8ddd1;
  --surface: rgba(255, 250, 242, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(61, 47, 34, 0.09);
  --line-strong: rgba(61, 47, 34, 0.16);
  --text: #221a16;
  --muted: #6a5a4b;
  --accent: #b45f28;
  --accent-2: #1f7a69;
  --accent-3: #3f6ea8;
  --shadow: 0 24px 70px rgba(72, 50, 34, 0.18);
}

html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(180, 95, 40, 0.18), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(31, 122, 105, 0.16), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(63, 110, 168, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f2eb 0%, #ece2d7 52%, #e0d2c2 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 36, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 36, 24, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  opacity: 0.34;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.92), rgba(247, 242, 235, 0.68));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61, 47, 34, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), #e8b570);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(180, 95, 40, 0.28);
}

.brand-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 249, 242, 0.94), rgba(239, 229, 217, 0.94)),
    radial-gradient(circle at 18% 18%, rgba(180, 95, 40, 0.14), transparent 34%);
  border: 1px solid rgba(61, 47, 34, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -20% auto;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 122, 105, 0.16), transparent 68%);
  filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: riseIn 720ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  max-width: 10ch;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 47, 34, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  font-size: 0.84rem;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-link {
  color: #fffaf4;
  background: linear-gradient(135deg, #b45f28, #e2a35d);
  box-shadow: 0 18px 36px rgba(180, 95, 40, 0.24);
}

.secondary-link {
  color: var(--text);
  border: 1px solid rgba(61, 47, 34, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  z-index: 1;
}

.visual-frame {
  height: 100%;
  min-height: 540px;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, rgba(63, 110, 168, 0.14), rgba(31, 122, 105, 0.12));
  border: 1px solid rgba(61, 47, 34, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 24px 48px rgba(72, 50, 34, 0.18);
  display: grid;
  place-items: center;
  animation: floatCard 8s ease-in-out infinite;
}

.visual-frame img {
  width: min(100%, 420px);
  filter: drop-shadow(0 24px 34px rgba(72, 50, 34, 0.2));
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 14px;
  align-items: center;
  width: min(290px, calc(100% - 28px));
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(61, 47, 34, 0.1);
  box-shadow: 0 18px 42px rgba(72, 50, 34, 0.16);
  backdrop-filter: blur(12px);
  animation: bob 7s ease-in-out infinite;
}

.floating-card img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.floating-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.card-a {
  top: 24px;
  left: -10px;
}

.card-b {
  right: -12px;
  bottom: 24px;
  animation-delay: -2.5s;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 56px;
  display: grid;
  gap: 20px;
}

section {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.88), rgba(255, 249, 242, 0.76));
  border: 1px solid rgba(61, 47, 34, 0.08);
  box-shadow: 0 18px 44px rgba(72, 50, 34, 0.14);
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 95, 40, 0.07), transparent 36%, rgba(31, 122, 105, 0.05));
  z-index: 0;
  pointer-events: none;
}

section > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--text);
}

h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: #4a3324;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid p {
  margin-bottom: 0;
  padding: 18px 18px 0;
  border-top: 1px solid rgba(61, 47, 34, 0.08);
}

.image-band {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.image-band figure,
.gallery-card,
.service-card,
.info-box,
.timeline article {
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(61, 47, 34, 0.08);
}

.image-band figure {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
}

.image-band img,
.gallery-card img {
  width: 100%;
  height: auto;
}

.image-band figcaption,
.gallery-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 18px;
  border-radius: 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(61, 47, 34, 0.16);
  box-shadow: 0 26px 52px rgba(72, 50, 34, 0.18);
}

.card-image {
  width: 100%;
  height: 156px;
  object-fit: contain;
  margin-bottom: 14px;
}

.process-panel .timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 18px;
  border-radius: 20px;
  min-height: 210px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent-2), #81c7af);
  font-weight: 900;
}

.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 14px;
}

.gallery-card {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  transition: transform 260ms ease;
}

.gallery-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.gallery-card.wide img {
  min-height: 280px;
  object-fit: cover;
}

.contact-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.info-box {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
}

.main-contact p {
  font-size: 1.02rem;
}

footer {
  padding: 24px 16px 34px;
  text-align: center;
  color: var(--muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.3deg);
  }
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1100px) {
  .hero,
  .contact-info,
  .gallery-grid,
  .services-grid,
  .process-panel .timeline,
  .intro-grid,
  .image-band {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .visual-frame {
    min-height: 460px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card.wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .hero,
  .container {
    width: min(100% - 20px, 1240px);
  }

  .hero,
  section {
    border-radius: 24px;
  }

  .section-heading,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-grid,
  .gallery-grid,
  .contact-info,
  .process-panel .timeline,
  .intro-grid,
  .image-band {
    grid-template-columns: 1fr;
  }

  .card-a,
  .card-b {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .hero-visual,
  .visual-frame {
    min-height: auto;
  }

  .visual-frame img {
    width: min(100%, 360px);
  }
}

.footer-note {
  margin-top: 6px;
  font-size: 0.95rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.35deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1100px) {
  .hero,
  .contact-info,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .process-panel .timeline,
  .intro-grid,
  .image-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 480px;
  }

  .visual-frame {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero,
  .container {
    width: min(100% - 20px, 1240px);
  }

  .hero {
    border-radius: 26px;
  }

  .section-heading,
  .intro-grid,
  .services-grid,
  .process-panel .timeline,
  .image-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-visual,
  .visual-frame {
    min-height: 420px;
  }

  .card-a,
  .card-b {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
