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

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

:root {
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --bg: #F9F7F3;
  --text: #1C1A16;
  --muted: #7A7369;
  --card: #FFFFFF;
  --card-border: #E8E4DC;
  --section: #F2EFE9;
  --accent: #A07448;
  --accent-light: rgba(160, 116, 72, 0.12);
  --accent-hover: #7E5A37;
  --input-bg: #FEFDFB;
  --input-border: #D8D4CB;
  --header-bg: rgba(249, 247, 243, 0.90);
  --shadow-sm: 0 2px 8px rgba(28,26,22,0.06);
  --shadow-md: 0 8px 24px rgba(28,26,22,0.10);
  --shadow-lg: 0 20px 48px rgba(28,26,22,0.13);
}

body.dark {
  --bg: #131210;
  --text: #EDE9E1;
  --muted: #9A9189;
  --card: #1D1B17;
  --card-border: #2D2A24;
  --section: #181611;
  --accent: #C4956A;
  --accent-light: rgba(196,149,106,0.14);
  --accent-hover: #DBA87C;
  --input-bg: #161410;
  --input-border: #333028;
  --header-bg: rgba(19,18,16,0.92);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 300ms ease, color 300ms ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/*---------- SECTION LABELS ----------*/
.section-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/*---------- NAV ----------*/
.container {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

header {
  position: fixed;
  width: 100%;
  background: transparent;
  padding: 20px 0;
  z-index: 1000;
  transition: background 350ms ease, padding 350ms ease, backdrop-filter 350ms ease, box-shadow 350ms ease;
}

header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
  transition: height 350ms ease;
}

header.scrolled .logo img { height: 40px; }

.logo .logo-light { display: block; }
.logo .logo-dark  { display: none; }
body.dark .logo .logo-light { display: none; }
body.dark .logo .logo-dark  { display: block; }

nav { margin-left: auto; }

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  position: relative;
  transition: color 200ms ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

nav a:hover { color: var(--accent); }
nav a:hover::after { transform: scaleX(1); }

/* White nav over hero */
header:not(.scrolled) .nav-link-hero { color: rgba(255,255,255,0.88); }
header:not(.scrolled) .nav-link-hero:hover { color: #fff; }
header:not(.scrolled) .nav-link-hero::after { background: #fff; }

#menu-btn {
  display: none;
  background: none;
  color: var(--text);
  font-size: 1.5rem;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

#theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 200ms, border-color 200ms, box-shadow 200ms;
  white-space: nowrap;
  flex-shrink: 0;
}

#theme-toggle:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
  color: var(--accent);
}

/*---------- HERO ----------*/
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("../images/ui/hero.jpg") center/cover no-repeat;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  animation: heroFadeIn 1.1s cubic-bezier(0.22, 0.8, 0.44, 1) both;
}

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

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 22px;
}

.hero h2 {
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  font-weight: 300;
  line-height: 1.02;
}

.hero h2 em {
  font-style: italic;
  font-weight: 300;
}

.hero p {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.48);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: cueFloat 2.4s ease-in-out infinite;
}

.hero-scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.48), transparent);
}

@keyframes cueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/*---------- BUTTONS ----------*/
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: transform 200ms ease, box-shadow 200ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn-primary {
  background: rgba(255,255,255,0.96);
  color: #1C1A16;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.46);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Legacy .btn from older links */
.btn:not(.btn-primary):not(.btn-outline):not(.btn-dark) {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn:not(.btn-primary):not(.btn-outline):not(.btn-dark):hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/*---------- GALLERY (homepage) ----------*/
.portfolio {
  padding: 110px 8% 70px;
  text-align: center;
}

.portfolio > h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: 12px;
}

.portfolio > p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9375rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.72) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 0;
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.caption {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
  z-index: 1;
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-cta { margin-top: 52px; }

/*---------- REVIEWS ----------*/
.reviews-section {
  padding: 10px 0 80px;
}

.wrapper {
  width: 90%;
  max-width: 1500px;
  margin-inline: auto;
  position: relative;
  height: 160px;
  margin: 1rem auto 2rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0)
  );
}

@keyframes scrollLeft {
  to { left: -200px; }
}

.scroll-item {
  width: 200px;
  height: 140px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  position: absolute;
  left: max(calc(200px * 8), 100%);
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-name {
  font-weight: 500;
  color: var(--text);
  font-size: 0.8125rem;
}

.review-stars {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.item1 { animation-delay: calc(30s / 8 * (8 - 1) * -1); }
.item2 { animation-delay: calc(30s / 8 * (8 - 2) * -1); }
.item3 { animation-delay: calc(30s / 8 * (8 - 3) * -1); }
.item4 { animation-delay: calc(30s / 8 * (8 - 4) * -1); }
.item5 { animation-delay: calc(30s / 8 * (8 - 5) * -1); }
.item6 { animation-delay: calc(30s / 8 * (8 - 6) * -1); }
.item7 { animation-delay: calc(30s / 8 * (8 - 7) * -1); }
.item8 { animation-delay: calc(30s / 8 * (8 - 8) * -1); }

/*---------- ABOUT (homepage) ----------*/
#about {
  padding: 110px 8%;
  background: var(--section);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5rem;
}

#about p { color: var(--muted); margin: 1rem 0; font-size: 0.9375rem; }

.about-container {
  flex: 0 0 48%;
  min-width: 0;
  align-self: center;
}

.about-container h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 8px;
}

.about-map {
  flex: 0 0 48%;
  min-width: 0;
  align-self: stretch;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.about-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

/*---------- SERVICES ----------*/
#services {
  padding: 110px 8%;
  text-align: center;
}

#services h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: 12px;
}

#services > p {
  max-width: 52ch;
  margin: 0 auto 52px;
  color: var(--muted);
  font-size: 15px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  padding: 32px 28px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.services-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-light);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.services-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 1.5rem; margin-bottom: 10px; }

.card > p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
  font-weight: 300;
}

.service-divider {
  height: 1px;
  background: var(--card-border);
  margin: 20px 0;
}

.service-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

/*---------- CONTACT ----------*/
#contact {
  padding: 110px 8%;
  text-align: center;
  background: var(--section);
}

#contact h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: 12px;
}

.contact-subtitle {
  color: var(--muted);
  margin: 0 auto 52px;
  max-width: 48ch;
  font-size: 0.9375rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-top: 28px;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.contact-social a { 
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.contact-social a .contact-icon {
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.contact-social a:hover .contact-icon {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-item a:hover .contact-icon {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.contact-form label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.contact-form label:first-of-type { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  padding: 13px 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.contact-form button {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 200ms, transform 200ms, box-shadow 200ms;
}

.contact-form button:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#form-status {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  min-height: 1.2em;
}

/*---------- FOOTER ----------*/
.site-footer {
  background: #0E0C09;
  color: #EDE9E0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 14px;
  color: #EDE9E0;
}

.footer-brand p {
  color: rgba(237,233,224,0.55);
  max-width: 38ch;
  font-size: 0.875rem;
  line-height: 1.7;
  font-weight: 300;
}

.footer-column h3 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(237,233,224,0.45);
  margin-bottom: 18px;
}

.footer-column ul { list-style: none; padding: 0; }
.footer-column li + li { margin-top: 12px; }

.footer-column li,
.footer-column a {
  color: rgba(237,233,224,0.70);
  font-size: 0.875rem;
  font-weight: 300;
  text-decoration: none;
  transition: color 200ms;
}

.footer-column a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(237,233,224,0.36);
  font-weight: 300;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 36px;
  width: auto;
  opacity: 0.65;
  transition: opacity 200ms;
}

.site-logo:hover img { opacity: 1; }

/*---------- RESPONSIVE ----------*/
@media (max-width: 1100px) {
  #about { gap: 3rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .logo img { height: 40px; }
  header.scrolled .logo img { height: 36px; }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
  }

  nav ul.active { display: flex; }
  nav ul li a { display: block; padding: 10px 22px; font-size: 0.75rem; }
  header:not(.scrolled) nav ul.active .nav-link-hero { color: var(--text); }
  header:not(.scrolled) nav ul.active .nav-link-hero:hover { color: var(--accent); }
  header:not(.scrolled) nav ul.active .nav-link-hero::after { background: var(--accent); }
  #menu-btn { display: block; }

  #theme-toggle { font-size: 0.625rem; padding: 6px 10px; }

  .hero h2 { font-size: clamp(3.1rem, 10vw, 4.6rem); }
  .hero p { font-size: 1.125rem; }

  .portfolio { padding: 90px 24px 50px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  /*Show overlay on images when on mobile*/
  .gallery-item::after { opacity: 1; }
  .caption { opacity: 1; }

  #about { flex-direction: column; padding: 80px 24px; gap: 2.5rem; }
  .about-container, .about-map { width: 100%; flex: none; }
  .about-map iframe { min-height: 300px; }

  #services { padding: 80px 24px; }
  .services { grid-template-columns: 1fr; }

  #contact { padding: 80px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 24px 20px; }

  .footer-layout { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 36px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
