/* ========================================
   Legacy Iron Art — Design System
   ======================================== */

:root {
  --bg-primary: #f8f5f0;
  --bg-secondary: #f0ebe4;
  --bg-card: #ffffff;
  --bg-dark: #2a2420;
  --text-primary: #2a2420;
  --text-secondary: #6b5e52;
  --text-muted: #9a8d80;
  --text-inverse: #f8f5f0;
  --accent: #b08d6e;
  --accent-hover: #967757;
  --accent-light: rgba(176, 141, 110, 0.12);
  --border: rgba(42, 36, 32, 0.08);
  --border-strong: rgba(42, 36, 32, 0.14);
  --shadow-sm: 0 1px 3px rgba(42, 36, 32, 0.05);
  --shadow-md: 0 4px 16px rgba(42, 36, 32, 0.08);
  --shadow-lg: 0 8px 32px rgba(42, 36, 32, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 180ms ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  color: var(--text-secondary);
  max-width: 64ch;
}

/* ========================================
   Layout
   ======================================== */

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

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  max-width: 52ch;
  margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-inverse);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Header
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(248, 245, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background-color: rgba(248, 245, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Nav — Mobile default: hidden overlay */
.nav {
  position: fixed;
  inset: 0;
  background-color: rgba(248, 245, 240, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 99;
}

.nav.open {
  opacity: 1;
  visibility: visible;
}

.nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  background-color: var(--accent-light);
}

.nav-cta {
  margin-top: 16px;
  background-color: var(--accent);
  color: var(--text-inverse);
  border-radius: 100px;
  padding: 14px 32px;
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  color: var(--text-inverse);
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 101;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(176, 141, 110, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(42, 36, 32, 0.3) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(42, 36, 32, 0.5) 0%, rgba(42, 36, 32, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.hero-text {
  max-width: 600px;
}

/* Badge / tagline */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-badge-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.hero-badge-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  color: var(--text-inverse);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.08;
}

.hero-subtitle {
  color: rgba(248, 245, 240, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-bottom: 36px;
  max-width: 44ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Card — hidden on mobile */
.hero-card {
  display: none;
}

/* ---- Scroll indicator ---- */
.hero-scroll {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(248, 245, 240, 0.5);
  transition: color 0.3s ease;
}

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

.hero-scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ---- Bottom decorative edge ---- */
.hero-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.hero-edge svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* ---- Floating embers ---- */
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: emberFloat linear infinite;
}

.ember:nth-child(1) { left: 12%; animation-duration: 7s; animation-delay: 0s; }
.ember:nth-child(2) { left: 30%; animation-duration: 9s; animation-delay: 2s; }
.ember:nth-child(3) { left: 55%; animation-duration: 8s; animation-delay: 1s; }
.ember:nth-child(4) { left: 72%; animation-duration: 10s; animation-delay: 3.5s; }
.ember:nth-child(5) { left: 88%; animation-duration: 7.5s; animation-delay: 0.5s; }
.ember:nth-child(6) { left: 42%; animation-duration: 11s; animation-delay: 4s; }

@keyframes emberFloat {
  0%   { bottom: -5%; opacity: 0; transform: translateX(0) scale(1); }
  10%  { opacity: 0.7; }
  50%  { opacity: 0.35; transform: translateX(30px) scale(0.7); }
  90%  { opacity: 0.1; }
  100% { bottom: 105%; opacity: 0; transform: translateX(-20px) scale(0.3); }
}

/* ---- Entrance animations ---- */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.is-visible .hero-anim {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-visible .hero-anim:nth-child(1) { transition-delay: 0.15s; }
.hero.is-visible .hero-anim:nth-child(2) { transition-delay: 0.30s; }
.hero.is-visible .hero-anim:nth-child(3) { transition-delay: 0.45s; }
.hero.is-visible .hero-anim:nth-child(4) { transition-delay: 0.60s; }

/* Hero card gets a longer delay since it appears after all the text */
.hero.is-visible .hero-card.hero-anim {
  transition-delay: 0.9s;
}

/* Keep hero-card hidden on mobile even after animation class */
.hero-card.hero-anim {
  display: none;
}

/* ========================================
   Works
   ======================================== */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.works-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-secondary);
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.works-item:hover img {
  transform: scale(1.04);
}

.works-hidden {
  display: none;
}

.works-grid.expanded .works-hidden {
  display: block;
}

.works-toggle-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ========================================
   Services — Carousel on mobile
   ======================================== */

.services-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.services-track::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 85vw;
  scroll-snap-align: start;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: 20px;
}

.service-title {
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background-color: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ========================================
   About
   ======================================== */

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-content .section-title {
  margin-bottom: 8px;
}

.about-content .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ========================================
   Contact
   ======================================== */

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card,
.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}

.contact-card {
  padding: 24px 20px;
  text-align: center;
}

.contact-card:hover,
.contact-form-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin: 0 auto 16px;
}

.contact-card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card-value {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.contact-card-value a {
  color: var(--text-primary);
}

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

.contact-form-card {
  padding: 24px 20px;
}

.contact-form-card .contact-form {
  margin: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a8d80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

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

.btn-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 1rem;
  padding: 16px 32px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--bg-dark);
  padding: 48px 0 32px;
  color: var(--text-inverse);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-about {
  max-width: 320px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-inverse);
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(248, 245, 240, 0.55);
  max-width: none;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 245, 240, 0.45);
  margin: 0;
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  transition: color var(--transition);
}

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

.footer-detail-static {
  cursor: default;
}

.footer-detail-static .footer-detail-text {
  color: rgba(248, 245, 240, 0.75);
}

.footer-detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248, 245, 240, 0.38);
}

.footer-detail-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(248, 245, 240, 0.75);
  transition: color var(--transition);
}

.footer-links-col .footer-nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(248, 245, 240, 0.65);
  transition: color var(--transition);
}

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

.footer-divider {
  height: 1px;
  background-color: rgba(248, 245, 240, 0.1);
  margin: 32px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(248, 245, 240, 0.4);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(248, 245, 240, 0.45);
}

/* ========================================
   Reveal animation
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

/* ========================================
   RESPONSIVE — Tablet (min-width: 768px)
   ======================================== */

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .section {
    padding: 104px 0;
  }

  .section-header {
    margin-bottom: 56px;
  }

  /* Nav — desktop inline */
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    opacity: 1;
    visibility: visible;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-link {
    font-size: 0.9375rem;
    padding: 8px 16px;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 8px;
    padding: 10px 24px;
  }

  .menu-toggle {
    display: none;
  }

  /* Hero card — show on tablet+ */
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .hero-card,
  .hero-card.hero-anim {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
  }

  .hero-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-inverse);
    margin-bottom: 4px;
  }

  .hero-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(248, 245, 240, 0.75);
    font-size: 0.875rem;
  }

  .hero-card-item a {
    color: rgba(248, 245, 240, 0.75);
  }

  .hero-card-item a:hover {
    color: var(--accent);
  }

  .hero-card-item svg {
    flex-shrink: 0;
    color: var(--accent);
  }

  .hero-card-btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  /* Works grid */
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Services — desktop grid */
  .services-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .service-card {
    flex: none;
  }

  .carousel-dots {
    display: none;
  }

  /* About */
  .about-grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .about-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 3 / 4;
  }

  .about-content {
    flex: 1;
  }

  /* Contact */
  .contact-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
  }

  .contact-details-stack {
    flex: 0 0 42%;
    max-width: 440px;
  }

  .contact-form-card {
    flex: 1;
    min-width: 0;
  }

  .form-row {
    flex-direction: row;
    gap: 20px;
  }

  .form-row .form-group {
    flex: 1;
  }

  .btn-submit {
    width: auto;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: minmax(200px, 1fr) minmax(220px, 1.1fr) auto;
    align-items: start;
    gap: 48px;
  }

  .footer-contact-block {
    text-align: left;
    justify-self: end;
  }

  .footer-contact-block .footer-heading {
    text-align: left;
  }

  .footer-contact-block .footer-address {
    align-items: flex-start;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
    max-width: 480px;
  }

  .footer-contact-block {
    text-align: left;
  }

  .footer-contact-block .footer-heading {
    text-align: left;
  }

  .footer-contact-block .footer-address {
    align-items: flex-start;
  }
}

/* ========================================
   RESPONSIVE — Desktop (min-width: 1024px)
   ======================================== */

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }

  .section {
    padding: 120px 0;
  }

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

  .works-grid {
    gap: 20px;
  }

  .about-grid {
    gap: 80px;
  }
}
