/* Altavista Concrete — Styles */

:root {
  --color-bg: #f7f5f2;
  --color-bg-dark: #1a1a1a;
  --color-bg-muted: #ebe8e3;
  --color-surface: #ffffff;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6560;
  --color-text-light: #f7f5f2;
  --color-accent: #c45a1a;
  --color-accent-hover: #a34815;
  --color-border: #d4cfc8;
  --color-placeholder: #3d3d3d;
  --color-placeholder-text: #8a8580;

  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", system-ui, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --header-height: 72px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  color: white;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-accent);
  border-radius: 6px;
  font-size: 1.125rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: white;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

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

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: white;
  color: white;
}

.btn-nav {
  padding: 0.625rem 1.25rem;
  background: var(--color-accent);
  color: white !important;
  border-radius: var(--radius);
}

.btn-nav:hover {
  background: var(--color-accent-hover);
  color: white !important;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--color-bg-dark);
}

.hero-media img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: clamp(2rem, 8vw, 6rem);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(26, 26, 26, 0.55) 50%,
    rgba(26, 26, 26, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: 4rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: white;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
}

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

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

.hero .eyebrow {
  color: #e8925a;
}

/* Image placeholders */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--color-placeholder),
      var(--color-placeholder) 10px,
      #333 10px,
      #333 20px
    );
  color: var(--color-placeholder-text);
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.image-placeholder span {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.image-placeholder small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Trust bar */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: 2rem;
}

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

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-text);
}

.trust-item span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Sections */
.section {
  padding-block: 5rem;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-dark .eyebrow {
  color: #e8925a;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

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

.section-header {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section-dark .section-header h2 {
  color: white;
}

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

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-dark);
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slideshow-image.active {
  display: block;
}

.slideshow-controls {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.slideshow-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1rem;
}

.slideshow-btn:hover {
  background: white;
}

.slideshow-dots {
  display: flex;
  gap: 0.35rem;
}

.slideshow-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.slideshow-dot.active {
  background: white;
}

.service-body {
  padding: 1.5rem;
}

.service-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.service-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.service-media .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.about-img {
  aspect-ratio: 4 / 5;
  min-height: 400px;
}

.about-content h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--color-text);
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Service areas */
.areas-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.areas-list li {
  position: relative;
  padding-left: 1.25rem;
  font-weight: 500;
}

.areas-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.areas-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.contact-info > p {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
}

.contact-details {
  font-style: normal;
  display: grid;
  gap: 1.25rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-detail a {
  font-weight: 600;
  font-size: 1.0625rem;
}

/* Form */
.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

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

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 90, 26, 0.15);
}

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

.form-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}

.form-note.success {
  color: #2d6a4f;
}

.form-note.error {
  color: #9b2226;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 320px;
  font-size: 0.9375rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: white;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.social-links img {
  width: 1.375rem;
  height: 1.375rem;
  filter: brightness(0) invert(1);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

/* Chatbot */
.chatbot-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #d96f2e 100%);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 16px 32px rgba(196, 90, 26, 0.32);
  cursor: pointer;
}

.chatbot-toggle:hover {
  background: var(--color-accent-hover);
}

.chatbot-toggle-icon {
  font-size: 1.1rem;
}

.chatbot-panel {
  width: min(22rem, calc(100vw - 2rem));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem 1rem 0.9rem 0.9rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  background: linear-gradient(180deg, #1f1f1f 0%, #121212 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chatbot-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.chatbot-eyebrow {
  margin: 0 0 0.15rem;
  color: #e8925a;
  letter-spacing: 0.18em;
}

.chatbot-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.chatbot-screen {
  display: none;
  padding: 1rem;
}

.chatbot-screen.is-active {
  display: block;
}

.chatbot-message {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.6;
}

.chatbot-message.bot {
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.chatbot-options {
  display: grid;
  gap: 0.6rem;
}

.chatbot-option {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.chatbot-option:hover,
.chatbot-option.is-selected {
  border-color: var(--color-accent);
  background: rgba(196, 90, 26, 0.1);
  box-shadow: inset 0 0 0 1px rgba(196, 90, 26, 0.22);
}

.chatbot-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.chatbot-input {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 90, 26, 0.12);
}

.chatbot-summary {
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--color-bg);
  margin-bottom: 1rem;
}

.chatbot-summary p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .chatbot-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

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

  .about-grid,
  .areas-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
  }

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

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .areas-list {
    grid-template-columns: 1fr;
  }
}

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

  .service-card:hover {
    transform: none;
  }
}
