/* Three Nails Home Service — site styles */

:root {
  --slate-950: #1a2332;
  --slate-900: #243044;
  --slate-800: #334155;
  --slate-700: #475569;
  --cream: #f4efe6;
  --cream-dark: #e8dfd1;
  --gold: #d4a853;
  --gold-light: #f0d48a;
  --green: #2f6b44;
  --green-light: #3d8b5a;
  --orange: #c96a1a;
  --orange-light: #f59e0b;
  --blue: #3b82c4;
  --blue-light: #60a5fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--slate-900);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--gold);
  color: var(--slate-950);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(26, 35, 50, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 239, 230, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: var(--cream);
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold);
  color: var(--slate-950) !important;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold-light);
  color: var(--slate-950) !important;
}

.nav-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-facebook svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(244, 239, 230, 0.08);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(26, 35, 50, 0.94) 0%, rgba(26, 35, 50, 0.78) 45%, rgba(26, 35, 50, 0.55) 100%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.18), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--cream);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 400;
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(244, 239, 230, 0.88);
  max-width: 58ch;
}

.tagline {
  margin: 0 0 2rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.btn-primary {
  background: var(--gold);
  color: var(--slate-950);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
}

.btn-secondary {
  border-color: rgba(244, 239, 230, 0.35);
  color: var(--cream);
  background: rgba(244, 239, 230, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(244, 239, 230, 0.16);
}

.btn-light {
  background: var(--cream);
  color: var(--slate-950);
  white-space: nowrap;
}

/* Trust bar */

.trust-bar {
  background: var(--white);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.08);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-grid article {
  text-align: center;
  padding: 0.5rem;
}

.trust-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.trust-grid h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.trust-grid p {
  margin: 0;
  color: var(--slate-700);
  font-size: 0.95rem;
}

/* Sections */

section {
  padding: 5rem 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--slate-950);
}

.section-header p:last-child {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.05rem;
}

/* Services */

.services {
  background:
    radial-gradient(circle at top right, rgba(212, 168, 83, 0.08), transparent 28%),
    var(--cream);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-top: 5px solid var(--green);
}

.service-card--orange { border-top-color: var(--orange); }
.service-card--blue { border-top-color: var(--blue); }
.service-card--slate { border-top-color: var(--slate-800); }

.service-card-head {
  padding: 1.5rem 1.5rem 0.75rem;
}

.service-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 107, 68, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card--orange .service-badge {
  background: rgba(201, 106, 26, 0.12);
  color: var(--orange);
}

.service-card--blue .service-badge {
  background: rgba(59, 130, 196, 0.12);
  color: var(--blue);
}

.service-card--slate .service-badge {
  background: rgba(51, 65, 85, 0.12);
  color: var(--slate-800);
}

.service-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-card ul {
  margin: 0;
  padding: 0 1.5rem 1.25rem 2.35rem;
  color: var(--slate-700);
}

.service-card li + li {
  margin-top: 0.45rem;
}

.service-card-icon {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 0 1.5rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 107, 68, 0.08);
}

.service-card-icon i {
  font-size: 3.25rem;
  line-height: 1;
  color: var(--green);
}

.service-card--orange .service-card-icon {
  background: rgba(201, 106, 26, 0.08);
}

.service-card--orange .service-card-icon i {
  color: var(--orange);
}

.service-card--blue .service-card-icon {
  background: rgba(59, 130, 196, 0.08);
}

.service-card--blue .service-card-icon i {
  color: var(--blue);
}

.service-card--slate .service-card-icon {
  background: rgba(51, 65, 85, 0.08);
}

.service-card--slate .service-card-icon i {
  color: var(--slate-800);
}

/* CTA banner */

.cta-banner {
  padding: 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, var(--slate-950), var(--slate-900));
  color: var(--cream);
  box-shadow: var(--shadow);
}

.eyebrow-light {
  color: var(--gold-light);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-banner p:last-child {
  margin: 0;
  color: rgba(244, 239, 230, 0.82);
}

/* Gallery */

.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  grid-column: span 4;
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(26, 35, 50, 0.88));
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--slate-950);
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--slate-700);
  font-size: 1.05rem;
}

.about-area {
  margin-top: 1.25rem !important;
  color: var(--slate-950) !important;
}

.about-logo-card {
  background: var(--slate-950);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.about-logo-card img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
}

/* Contact */

.contact {
  background:
    radial-gradient(circle at bottom left, rgba(59, 130, 196, 0.08), transparent 30%),
    var(--cream);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.contact-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--slate-950);
  word-break: break-word;
}

.contact-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-note {
  margin: 0 0 1rem;
  color: var(--slate-700);
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--slate-800);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(51, 65, 85, 0.18);
  border-radius: 10px;
  font: inherit;
  background: #fcfaf7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(212, 168, 83, 0.45);
  border-color: var(--gold);
}

/* Footer */

.site-footer {
  background: var(--slate-950);
  color: rgba(244, 239, 230, 0.82);
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  color: var(--cream);
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-light);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Floating call button */

.floating-call {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(47, 107, 68, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-call:hover,
.floating-call:focus-visible {
  transform: scale(1.06);
  background: var(--green-light);
}

.floating-call svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

/* Responsive */

@media (max-width: 960px) {
  .service-cards,
  .about-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 12;
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    background: rgba(26, 35, 50, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.75rem;
    border-radius: 10px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(244, 239, 230, 0.06);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

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

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

  section {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
