/* Structura Sana – one-page site */

:root {
  --sky-top: #dfe9ef;
  --sky-bottom: #f6f3ec;
  --ink: #2f3e46;
  --muted: #5b6b73;
  --accent: #c8873a;
  --bg: #ffffff;
  --bg-alt: #f6f3ec;
  --max: 900px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 18vh 24px 0;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 32px;
}

.hero p.hero-lead {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero p.hero-lead strong { font-weight: 600; }

.br-phone { display: none; }

.hero p.hero-sub {
  font-size: clamp(1rem, 1.9vw, 1.12rem);
}

.hero-mountain {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 45vh;
  object-fit: cover;
  object-position: bottom;
}

.hero-building {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-60%);
  height: 25vh;
  width: auto;
  z-index: 1;
}

.button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.button:hover { opacity: 0.85; }

/* Sections */
.section {
  padding: 88px 24px;
  text-align: center;
}

.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

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

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 20px;
}

.label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
}

.lead a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* Contact */
.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: opacity 0.2s;
}

.whatsapp:hover { opacity: 0.88; }

.whatsapp img { width: 22px; height: 22px; }

.contact-alt {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.card {
  background: var(--bg);
  padding: 28px 22px;
  border-radius: 6px;
  border-top: 3px solid var(--accent);
  text-align: left;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 62, 70, 0.08);
  }
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 600px;
  margin-top: 28px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #c9d2d6;
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

/* Tablets (iPad) */
@media (max-width: 1024px) {
  .hero {
    min-height: 0;
    display: block;
  }

  .hero-text {
    margin: 0 auto;
    padding: 110px 32px calc(28vw + 50px);
  }

  .hero-mountain { height: 28vw; }

  .hero-building { height: 17vw; }

  .section { padding: 64px 32px; }

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

/* Phones (iPhone, Android) */
@media (max-width: 600px) {
  .hero-text { padding: 44px 20px calc(34vw + 32px); }

  .hero h1 { font-size: 2.6rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 6px; white-space: nowrap; }

  .br-phone { display: inline; }

  .hero p { font-size: 1rem; margin-bottom: 24px; }

  .hero p.hero-lead { font-size: 1.2rem; margin-bottom: 8px; }

  .hero p.hero-sub { font-size: 0.98rem; }

  .hero-mountain { height: 34vw; }

  .hero-building { height: 21vw; }

  .section { padding: 48px 20px; }

  .section h2 { font-size: 1.45rem; margin-bottom: 14px; }

  .lead { font-size: 1rem; }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .card { padding: 20px 18px; }
}

/* Computer: cards in a 2 x 2 grid */
@media (min-width: 1025px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
