/* === Variables === */
:root {
  --gold: #e1aa16;
  --black: #000;
  --white: #fefefe;
  --font-body: 'EB Garamond', serif;
  --font-heading: 'Verona', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background-color: var(--black);
  color: var(--white);
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  font-size: 1.125rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: underline var(--gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: normal; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.text-gold { color: var(--gold); }
.text-shadow { text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.underline-gold { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--gold); }

/* === Layout === */
.section {
  width: 100%;
}

/* === Navbar === */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--black);
  z-index: 100;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar .brand img {
  max-width: 160px;
  width: 100%;
}

#navbar .nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

#navbar .nav-links a {
  font-size: 1.25rem;
  color: var(--white);
}

#navbar .nav-links a:hover, #navbar .nav-links a:focus {
  text-decoration: none;
  color: var(--gold);
}

#hamburger {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Mobile drawer */
#mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 220px;
  background: var(--black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5rem;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu a {
  font-size: 1.25rem;
  color: var(--white);
}

#mobile-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Spacer for fixed navbar */
.navbar-spacer { height: 56px; }

/* === Button === */
.btn {
  display: inline-block;
  border-radius: 9999px;
  border: 4px solid transparent;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  background: var(--black);
  color: var(--white);
  line-height: 1.4;
}

.btn:hover, .btn:focus {
  border-color: var(--gold);
  text-decoration: none;
  outline: none;
}

.btn-cta {
  font-size: 1.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
}

.btn-cta:hover, .btn-cta:focus {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* === Banner === */
#banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  height: 33vh;
}

#banner img {
  position: absolute;
  width: 100%;
  top: 25%;
  transform: translateY(-25%);
}

@media (min-width: 800px) {
  #banner { height: 50vh; }
  #banner img { top: 33%; transform: translateY(-33%); }
}

@media (min-width: 1200px) {
  #banner { height: 75vh; }
}

/* === Hero section === */
#hero {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#hero .hero-text {
  width: 100%;
  padding: 1rem 1rem 1.5rem;
  text-align: center;
}

#hero .hero-text img {
  margin: 1.5rem auto;
  width: 8rem;
}

#hero .hero-img {
  width: 100%;
}

@media (min-width: 768px) {
  #hero .hero-text { width: 66.66%; padding: 2.5rem; margin: auto 0; }
  #hero .hero-text img { width: 11rem; }
  #hero .hero-img { width: 33.33%; }
  #navbar .nav-links { display: flex; }
  #hamburger { display: none; }
}

/* === Image Unblur === */
.image-container { overflow: hidden; }

.blur-image {
  width: 100%;
  filter: blur(10px);
  transition: filter 2s ease-out;
}

.blur-image.in-view { filter: blur(0); }

/* === Parallax === */
.parallax-section {
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .parallax-section {
    background-attachment: fixed;
    min-height: 500px;
  }
}

.parallax-inner {
  background: rgba(0,0,0,0.75);
  border-radius: 0.5rem;
  padding: 2.5rem 1.5rem;
  margin: 1rem;
}

@media (min-width: 768px) {
  .parallax-inner {
    padding: 3rem;
    margin: 4rem 3rem;
  }
}

/* === Stain === */
.stain {
  display: flex;
  padding: 0 5%;
  background-image: url('assets/stain.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 20rem;
}

/* === Services === */
#services-section {
  padding: 2rem;
}

#services-section h1 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service .stain {
  width: 100%;
  max-width: 20rem;
  margin: 1rem auto;
  align-self: center;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-body p { font-size: 1.25rem; padding: 0 1.25rem; }

.learn-more {
  align-self: flex-end;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.learn-more:hover, .learn-more:focus {
  text-decoration: underline var(--gold);
}

/* === Photo Cards === */
#why-section {
  padding: 2rem;
  text-align: center;
}

#why-section h1 {
  margin-bottom: 2rem;
}

.photo-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (min-width: 768px) {
  .photo-cards { flex-direction: row; }
}

.photoCard {
  width: 100%;
  perspective: 1000px;
  cursor: pointer;
  aspect-ratio: 3/4;
}

@media (min-width: 768px) {
  .photoCard { width: 33.33%; }
}

.photoCard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.photoCard:hover .photoCard-inner,
.photoCard.flipped .photoCard-inner {
  transform: rotateY(180deg);
}

.photoCard-front,
.photoCard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.photoCard-front {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.photoCard-front-overlay {
  height: 100%;
  background: rgba(0,0,0,0.15);
  display: grid;
  place-items: center;
}

.photoCard-back {
  background: var(--gold);
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  color: var(--black);
  text-align: center;
  padding: 2rem;
}

.photoCard-back p {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* === Goals section === */
#goals-section {
  display: flex;
  flex-wrap: wrap;
}

.goals-text {
  width: 100%;
  padding: 2.5rem;
  text-align: center;
}

.goals-text h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  padding-bottom: 1.5rem;
}

.goals-text h2 { font-size: 1.25rem; padding-bottom: 0.5rem; }

.goals-text ul {
  text-align: left;
  font-size: 1.25rem;
  list-style: none;
  padding: 0 1rem;
}

.goals-text ul li {
  padding: 4% 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.goals-text ul li::before {
  content: "✓";
  color: var(--gold);
  flex-shrink: 0;
}

.goals-img { width: 100%; }

@media (min-width: 768px) {
  .goals-text { width: 66.66%; margin: auto; }
  .goals-text ul li { padding: 2% 0; }
  .goals-img { width: 33.33%; }
}

/* === Accolades === */
#accolades-section {
  padding: 2rem 4rem;
  text-align: center;
}

#accolades-section h1 { margin-bottom: 1rem; }

.accolades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.accolades-list li a img {
  width: 200px;
  height: auto;
}

/* === Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--black);
  border-radius: 0.5rem;
  max-width: 720px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  animation: slide-in 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1rem 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--gold); }

.modal-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--white);
}

.modal-body h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-body p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* === Contact Form === */
.contact-form-modal .modal-body h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(225,170,22,0.3);
}

.form-group textarea { min-height: 6rem; resize: vertical; }

.form-submit { margin-top: 1rem; width: 100%; }

.contact-success {
  padding: 3rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-success h2 { font-size: 1.75rem; }
.contact-success h3 { font-size: 1.25rem; }
.contact-success img { width: 50%; max-width: 200px; }

/* === Footer === */
footer {
  background: var(--black);
  color: var(--white);
  padding: 1.5rem 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand h5 { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.25rem; }

.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.footer-social a:hover { color: var(--gold); text-decoration: none; }

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a { color: var(--white); }
.footer-links a:hover { color: #9ca3af; text-decoration: none; }

/* === About Page === */
#about-page {
  display: flex;
  flex-direction: column;
  padding: 0 0 4rem;
}

@media (min-width: 768px) {
  #about-page { flex-direction: row; padding: 0 2.5rem 4rem; }
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 1rem;
}

@media (min-width: 768px) {
  .about-card { width: 33.33%; padding-top: 6rem; }
}

.about-card-inner {
  background: var(--gold);
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-card-inner img {
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.about-card-inner .name {
  font-size: 1.75rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 0.25rem;
}

.about-card-inner .role {
  font-size: 1rem;
  color: #4b5563;
  text-align: center;
}

.about-text {
  flex: 1;
  padding: 2rem 2rem 0;
  color: var(--white);
}

@media (min-width: 768px) {
  .about-text { padding: 6rem 4rem 0; }
}

.about-text h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* === Animation === */
@keyframes slide-in {
  from { margin-top: 10px; opacity: 0.5; }
  to { margin-top: 0; opacity: 1; }
}

/* === Scrollbar (optional) === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }


/* === Text Modifiers === */
.italic {
  font-style: italic;
}

/* === Services Dropdown === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  line-height: 1;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus {
  color: var(--gold);
  outline: none;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  min-width: 220px;
  z-index: 50;
  border-radius: 0.25rem;
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--black);
  font-size: 1rem;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background: var(--black);
  color: var(--gold);
  text-decoration: none;
}

/* Mobile services submenu */
.mobile-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-services-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
}

.mobile-services-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.mobile-services-menu[hidden] { display: none; }

.mobile-services-menu li a {
  color: var(--gold);
  font-size: 1rem;
}

/* === Service Detail Pages === */
.service-page-hero {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .service-page-hero {
    min-height: 50vh;
    background-attachment: fixed;
  }
}

.service-page-hero-inner {
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 3rem 2.5rem 2rem;
}

.service-page-hero-inner h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.service-page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.service-page-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}