/* ============================================
   Sunset Sky Landscape — Premium Site Styles
   ============================================ */

:root {
  --color-bg: #f8f9fb;
  --color-bg-dark: #1a1a1a;
  --color-bg-cream: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-text: #1a1a1a;
  --color-text-light: #ffffff;
  --color-text-muted: #64748b;
  --color-accent: #f96302;
  --color-accent-dark: #e85800;
  --color-accent-light: #ff8534;
  --color-border: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-glass: 0 8px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-lift: 0 16px 48px rgba(15, 23, 42, 0.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --header-height: 80px;
  --container: 1200px;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background:
    linear-gradient(165deg, #ffffff 0%, #f4f7fa 35%, #eef2f6 70%, #e8edf3 100%);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section--dark {
  background: transparent;
}

.section--cream {
  background: transparent;
}

.section--reflective {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.3) 100%);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: var(--color-accent-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title--light {
  color: var(--color-text-light);
}

.section-body {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.section-body--light {
  color: rgba(245, 240, 232, 0.7);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-body {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249, 99, 2, 0.4);
}

.btn--secondary {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn--secondary:hover {
  background: #ffffff;
  color: var(--color-accent);
  box-shadow: var(--shadow-lift);
}

.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
}

.gallery-page__header .section-body {
  margin: 0 auto;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1.1;
  color: var(--color-text);
  flex-shrink: 0;
  gap: 0.5rem;
}

.logo:hover {
  color: var(--color-text);
}

.logo__img {
  height: 58px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: none;
}

.logo__img--footer {
  height: 72px;
  max-width: 280px;
}

.logo__img--loaded {
  display: block;
}

.logo__img--loaded + .logo__text {
  display: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo--footer .logo__img--footer.logo__img--loaded + .logo__text {
  display: none;
}

.logo--footer .logo__main {
  color: #fff;
}

.logo--footer .logo__sub {
  color: rgba(255, 255, 255, 0.6);
}

.logo__main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo__sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__phone {
  font-size: 0.85rem;
  color: var(--color-text);
  display: none;
  transition: color var(--transition);
}

.header__phone:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hero__video--ready {
  display: block;
}

.hero__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__poster--hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 10, 0.35) 0%,
      rgba(8, 10, 10, 0.2) 35%,
      rgba(8, 10, 10, 0.72) 72%,
      rgba(8, 10, 10, 0.88) 100%
    );
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.35rem;
}

.hero__eyebrow-mark {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  margin-bottom: 1.35rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.hero__title-main,
.hero__title-sub {
  display: block;
}

.hero__title-main {
  white-space: nowrap;
}

.hero__title-sub {
  margin-top: 0.12em;
  font-size: 0.82em;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--color-accent-light);
  opacity: 1;
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 auto 2rem;
  max-width: 34rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.hero__cta .btn--primary {
  box-shadow: 0 4px 20px rgba(249, 99, 2, 0.5);
}

.hero__cta .btn--outline {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

/* Intro */
.intro__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glass);
}

.intro__content .section-body {
  margin: 0 auto 1.5rem;
}

/* Highlights */
.highlights {
  padding: 4rem 0;
  background: transparent;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.highlight-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.75) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.highlight-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-accent);
}

.highlight-card__icon svg {
  width: 100%;
  height: 100%;
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.highlight-card a {
  color: var(--color-accent);
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.service-item {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all var(--transition);
}

.service-item:hover {
  background: #ffffff;
  border-color: rgba(249, 99, 2, 0.25);
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(249, 99, 2, 0.1);
}

/* Gallery — uniform square grid */
.work-panel {
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 250, 252, 0.55) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery__grid--preview {
  grid-template-columns: repeat(3, 1fr);
}
.work-panel__action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-page {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
}

.gallery-page__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.gallery-page__back:hover {
  color: var(--color-accent);
}

.gallery-page__back svg {
  width: 18px;
  height: 18px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}

.gallery__item:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* Reviews */
.reviews__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.review-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: var(--shadow-glass);
  transition: all var(--transition);
}

.review-link svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.review-link:hover {
  border-color: rgba(249, 99, 2, 0.2);
  background: #ffffff;
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* CTA Banner */
.cta-banner {
  padding: 5rem 0;
  background: transparent;
  text-align: center;
}

.cta-banner__inner {
  max-width: 760px;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cta-banner__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.25;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(241, 245, 249, 0.9) 100%);
  color: var(--color-text-muted);
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer .logo__main {
  font-size: 1.5rem;
  color: var(--color-text);
}

.footer .logo__sub {
  color: var(--color-text-muted);
}

.footer__brand-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__bbb {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer__bbb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}

.footer__bbb img {
  display: block;
  width: 120px;
  height: auto;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer__social-links {
  display: flex;
  gap: 0.75rem;
}

.footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
  transition: all var(--transition);
}

.footer__social-links a:hover {
  border-color: rgba(249, 99, 2, 0.3);
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 99, 2, 0.35);
}

.footer__social-links svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 23, 0.8);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.modal--open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.modal__close:hover {
  background: var(--color-bg-cream);
  color: var(--color-text);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__header {
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.modal__header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal__header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Form */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-group label,
.form-group legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group legend {
  margin-bottom: 0.6rem;
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 99, 2, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-checkboxes--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-checkbox input {
  width: auto;
  accent-color: var(--color-accent);
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.form-note--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form-note--error {
  background: #fdecea;
  color: #c0392b;
}

.form-success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-radius: calc(var(--radius) * 1.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-success:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.form-success__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  animation: form-success-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.form-success__icon svg {
  width: 100%;
  height: 100%;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  animation: form-success-rise 0.5s ease 0.25s both;
}

.form-success__text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 22rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  animation: form-success-rise 0.5s ease 0.35s both;
}

.form-success .btn {
  min-width: 10rem;
  animation: form-success-rise 0.5s ease 0.45s both;
}

@keyframes form-success-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes form-success-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

fieldset {
  border: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__close svg {
  width: 28px;
  height: 28px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav svg {
  width: 32px;
  height: 32px;
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 1.15rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .section-body {
    font-size: 1rem;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
  }

  .intro__content {
    padding: 1.5rem 1.25rem;
  }

  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle--open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header__phone {
    display: none;
  }

  .header__actions .btn--primary {
    display: none;
  }

  /* Mobile hero: text over image, bottom-left like the reference */
  .hero {
    height: 100svh;
    min-height: 560px;
    flex-direction: row;
    align-items: flex-end;
    overflow: hidden;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .hero__video,
  .hero__poster {
    object-fit: cover;
    object-position: center 40%;
  }

  .hero__overlay {
    inset: 0;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(8, 10, 10, 0.28) 0%,
      rgba(8, 10, 10, 0.2) 30%,
      rgba(8, 10, 10, 0.78) 68%,
      rgba(8, 10, 10, 0.92) 100%
    );
  }

  .hero::before {
    height: 72px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero::after {
    display: none;
  }

  .hero__content {
    position: relative;
    z-index: 3;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.15rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
    background: none;
  }

  .hero__eyebrow {
    margin-bottom: 0.9rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    max-width: 100%;
    justify-content: center;
  }

  .hero__eyebrow-mark {
    width: 1.35rem;
  }

  .hero__title {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
    margin-bottom: 0.9rem;
  }

  .hero__title-main {
    white-space: nowrap;
  }

  .hero__title-sub {
    font-size: 0.84em;
    margin-top: 0.1em;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    margin: 0 auto 1.35rem;
    max-width: 28rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 360px;
  }

  .hero__cta .btn--outline {
    border-color: rgba(255, 255, 255, 0.55);
  }

  /* Gallery: one photo at a time, full image visible */
  .gallery__grid,
  .gallery__grid--preview {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .gallery__item {
    aspect-ratio: auto;
    height: auto;
    border-radius: 10px;
    border-width: 0;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  }

  .gallery__item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .gallery__item:hover {
    transform: none;
  }

  .gallery__item:hover img {
    transform: none;
  }

  .work-panel {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .work-panel__action {
    margin-top: 1.5rem;
  }

  .highlights {
    padding: 2.5rem 0;
  }

  .highlights__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .highlight-card {
    text-align: center;
    padding: 1.35rem 1.15rem;
  }

  .highlight-card__icon {
    margin: 0 auto 0.85rem;
    width: 40px;
    height: 40px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .service-item {
    padding: 1rem 1.15rem;
    text-align: center;
  }

  .reviews__links {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .review-link {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    justify-items: center;
  }

  .footer__brand,
  .footer__brand p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__brand-top {
    justify-content: center;
  }

  .footer .logo,
  .logo--footer {
    justify-content: center;
  }

  .footer__social-links {
    justify-content: center;
  }

  .footer ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gallery-page {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 5rem;
  }

  .gallery-page__header {
    text-align: center;
    margin-bottom: 1.75rem;
  }

  .lightbox__image {
    max-height: 78svh;
    width: auto;
    max-width: 100%;
  }

  .modal__dialog {
    padding: 1.5rem;
  }

  .mobile-quote-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
  }

  .mobile-quote-bar .btn {
    width: 100%;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-quote-bar {
  display: none;
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero__content {
    padding: 0 1.1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__title {
    font-size: clamp(1.95rem, 10vw, 2.55rem);
  }
}
