@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --cream: #EDE8DF;
  --cream-light: #F5F1EA;
  --warm-white: #FAF8F4;
  --navy: #1C1B2E;
  --navy-mid: #2E2D42;
  --text-muted: #7A7568;
  --border: rgba(28,27,46,0.12);
  --gold: #C9943A;
  --success: #2D7A4F;
  --error: #B03A2E;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --radius-sm: 18px;
  --radius-md: 26px;
  --radius-lg: 36px;
  --radius-pill: 50px;
  --shadow-card: 0 8px 32px rgba(28,27,46,0.10);
  --shadow-lift: 0 16px 48px rgba(28,27,46,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--navy);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { min-height: 70vh; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--cream-light); }
.eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.02; margin: 0 0 18px; font-weight: 500; }
h1 { font-size: clamp(3.1rem, 8vw, 6.8rem); max-width: 860px; }
h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 18px; }
.muted { color: var(--text-muted); }
.btn, button.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--warm-white);
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover, button.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.hero .btn.secondary { color: var(--warm-white); border-color: rgba(250,248,244,.48); }
.btn.gold { background: var(--gold); color: var(--navy); }
.hero {
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 130px 0 72px;
  color: var(--warm-white);
  background:
    linear-gradient(90deg, rgba(28,27,46,.88), rgba(28,27,46,.58), rgba(28,27,46,.18)),
    url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1800&q=80') center/cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero p { max-width: 620px; font-size: 1.1rem; color: rgba(250,248,244,.9); }
.hero-actions, .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 70px;
  background:
    linear-gradient(90deg, rgba(250,248,244,.95), rgba(250,248,244,.78)),
    url('https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=1800&q=80') center/cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: min(5vw, 70px);
  bottom: -42px;
  width: clamp(150px, 22vw, 260px);
  aspect-ratio: 1;
  background: url('/assets/images/fine-touch-logo-mark-rounded.png') center/contain no-repeat;
  opacity: .08;
  animation: floatMark 7s ease-in-out infinite;
  transform: translate(var(--pointer-x, 0), var(--pointer-y, 0));
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; animation: softReveal .8s ease both; }
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease, background .32s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); border-color: rgba(201,148,58,.34); background: #fff; }
.media-card { padding: 0; overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.media-card:hover img { transform: scale(1.05); }
.media-card .card-body { padding: 22px; }
.pill { display: inline-flex; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(201,148,58,.16); color: var(--navy); font-size: .8rem; font-weight: 700; }
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .72s ease, transform .72s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.motion-ready {
  opacity: 0;
  transform: translateY(22px) scale(.9);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1);
}
.motion-ready.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.gallery-item.motion-ready { transform: translateY(28px) scale(.88) rotate(.8deg); }
.gallery-item.motion-ready.visible { transform: translateY(0) scale(1) rotate(0); }
.card.motion-ready.visible:hover { transform: translateY(-7px); }
.gallery-item.motion-ready.visible:hover { transform: translateY(-6px) scale(1) rotate(-.4deg); }
.service-image img.motion-ready { transform: scale(.9); }
.service-image img.motion-ready.visible { transform: scale(1); }
.notice { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; }
.notice.success { background: rgba(45,122,79,.12); color: var(--success); }
.notice.error { background: rgba(176,58,46,.12); color: var(--error); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  padding: 13px 14px;
  font: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(201,148,58,.72);
  box-shadow: 0 16px 34px rgba(28,27,46,.1), 0 0 0 4px rgba(201,148,58,.14);
  transform: translateY(-2px);
}
select {
  appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%),
    linear-gradient(to right, rgba(201,148,58,.18), rgba(201,148,58,.18));
  background-position:
    calc(100% - 23px) calc(50% - 3px),
    calc(100% - 17px) calc(50% - 3px),
    calc(100% - 42px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 58%;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(28,27,46,.06);
}
select:hover { border-color: rgba(201,148,58,.5); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(28,27,46,.09); }
option { color: var(--navy); background: #fff; }
label { display: grid; gap: 7px; font-weight: 700; }
label:focus-within { color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }
.contact-form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-color: rgba(201,148,58,.28);
  background:
    radial-gradient(circle at top right, rgba(201,148,58,.13), transparent 34%),
    #fff;
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-fields .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  min-height: 54px;
  border-radius: 18px;
  background: var(--warm-white);
}
.contact-form textarea { min-height: 150px; }
.contact-form .btn { min-height: 56px; width: fit-content; padding-inline: 30px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state { padding: 34px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); }
.map-embed {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin-top: 20px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: min(450px, 62vh);
}

@keyframes softReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { background-position: center center; }
  to { background-position: 58% center; }
}

@keyframes floatMark {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@media (max-width: 800px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 58px 0; }
  .grid.three, .grid.two, .form-grid.two { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; padding-top: 110px; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
}
