/* Figerrto Construction — landing page styles */

:root {
  --bg: #f7f4ef;
  --bg-alt: #efe9e0;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --ink-soft: #78716c;
  --accent: #c45c26;
  --accent-dark: #9a4519;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --border: rgba(28, 25, 23, 0.1);
  --shadow: 0 20px 50px rgba(28, 25, 23, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header:not(.scrolled):not(.menu-open) .logo-text,
.header:not(.scrolled):not(.menu-open) .nav a:not(.nav-cta) {
  color: rgba(250, 250, 249, 0.92);
}

.header:not(.scrolled):not(.menu-open) .nav a:not(.nav-cta):hover {
  color: #fff;
}

.header:not(.scrolled):not(.menu-open) .menu-toggle span {
  background: #fafaf9;
}

.header:not(.scrolled):not(.menu-open) .nav-cta {
  background: #fff;
  color: var(--ink) !important;
}

.header:not(.scrolled):not(.menu-open) .nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
}

.logo-text em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
}

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

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

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

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Stronger left/bottom scrim so copy stays readable over bright sky/house */
  background:
    linear-gradient(
      105deg,
      rgba(18, 14, 12, 0.88) 0%,
      rgba(18, 14, 12, 0.72) 38%,
      rgba(18, 14, 12, 0.35) 62%,
      rgba(18, 14, 12, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(18, 14, 12, 0.45) 0%,
      rgba(18, 14, 12, 0.15) 35%,
      rgba(18, 14, 12, 0.55) 70%,
      rgba(18, 14, 12, 0.82) 100%
    );
  pointer-events: none;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 720px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero .eyebrow {
  color: #ffb380;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero h1 em {
  font-style: italic;
  color: #ffe8d4;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 36rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

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

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.stat span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero .btn-ghost {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.hero .btn-primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

/* About */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-wrap {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  /* Match source photos (4:3) so nothing is stretched */
  aspect-ratio: 4 / 3;
}

.about-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.about-badge {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(28, 25, 23, 0.88);
  backdrop-filter: blur(10px);
  color: #fafaf9;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.about-badge-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8a87c;
  margin-bottom: 0.35rem;
}

.about-badge strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  display: block;
}

.about-copy .eyebrow {
  color: var(--accent);
}

.about-copy > p {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.975rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c45c26' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Services */
.services {
  background: var(--bg);
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(196, 92, 38, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Projects */
.projects {
  background: var(--bg-alt);
}

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

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-image {
  position: relative;
  width: 100%;
  /* Match source photos (1152×864) — prevents stretch/squash */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  flex: 0 0 auto;
}

.project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.project-body {
  padding: 1.35rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.project-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.project-body p:last-child {
  color: var(--ink-muted);
  font-size: 0.9rem;
  flex: 1;
}

/* Process */
.process {
  background: var(--surface);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.process-steps li {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.process-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-steps p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Contact */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-copy > p {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 28rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

a.contact-item:hover .contact-value {
  color: var(--accent);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-value {
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-panel {
  background: var(--ink);
  color: #fafaf9;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.contact-panel p {
  color: rgba(250, 250, 249, 0.75);
  margin-bottom: 1.5rem;
  font-size: 0.975rem;
}

.contact-panel a:not(.btn) {
  color: #e8a87c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-panel .btn-primary {
  margin-bottom: 1rem;
}

.contact-note {
  font-size: 0.8125rem !important;
  color: rgba(250, 250, 249, 0.5) !important;
  margin-bottom: 0 !important;
  text-align: center;
}

/* Footer */
.footer {
  background: #141210;
  color: rgba(250, 250, 249, 0.7);
  padding: 2.5rem 0 2rem;
}

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

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

.footer-brand strong {
  display: block;
  color: #fafaf9;
  margin-bottom: 0.2rem;
}

.footer-brand p {
  font-size: 0.875rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250, 250, 249, 0.65);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(250, 250, 249, 0.4);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(247, 244, 239, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

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

  .nav a {
    padding: 0.85rem 0.5rem;
    border-radius: 8px;
  }

  .nav a:hover {
    background: var(--accent-soft);
  }

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

  .header.menu-open {
    background: rgba(247, 244, 239, 0.98);
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero-stats {
    gap: 1.5rem 2rem;
  }

  .section {
    padding: 4rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
