/* eLafuente — static site styles (replaces WordPress/Elementor build) */

:root {
  --grey-dark: #797979;
  --grey-mid: #929292;
  --grey-card: #E0E0E0;
  --grey-border: #C6C6C6;
  --grey-portfolio-border: #CFCFCF;
  --black: #000000;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: #F5F5F5;
}

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

.divider {
  max-width: var(--max-width);
  margin: 40px auto;
  border: none;
  border-top: 1px solid #cfcfcf;
}

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../img/hero-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.hero-avatar {
  width: 260px;
  height: 260px;
  max-width: 60vw;
  max-height: 60vw;
  border-radius: 50%;
  margin: 0 auto 30px;
  object-fit: cover;
}

.hero-title {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 59px);
  margin: 0;
  line-height: 1;
}

.hero-subtitle {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 14px 0 0;
}

.hero-arrow {
  display: block;
  width: 46px;
  height: 46px;
  margin: 40px auto 0;
  transition: opacity .2s linear;
}

.hero-arrow svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.hero-arrow:hover { opacity: .7; }

/* -------------------------------------------------------------- sections */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 39px;
  color: var(--black);
  margin: 0 0 20px;
}

.section-subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--grey-dark);
  margin: 0;
}

/* ------------------------------------------------------------------ about */

.about-grid {
  display: grid;
  grid-template-columns: 383px 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  border-radius: 6px;
  justify-self: end;
}

.about-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--black);
  margin: 0 0 8px;
}

.about-tagline {
  font-size: 16px;
  color: var(--grey-dark);
  margin: 0 0 16px;
}

.about-copy p {
  font-size: 16px;
  margin: 0 0 16px;
}

/* --------------------------------------------------------------- services */

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

.service-card {
  background: var(--grey-card);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 10px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--grey-mid);
}

.service-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 25px;
  color: var(--grey-dark);
  margin: 0 0 10px;
}

.service-desc {
  font-weight: 500;
  font-size: 16px;
  color: var(--grey-dark);
  margin: 0;
}

/* -------------------------------------------------------------- portfolio */

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.portfolio-grid img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border: 2px solid var(--grey-portfolio-border);
  border-radius: 8px;
  background: #fff;
}

/* ---------------------------------------------------------------- contact */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-form label {
  display: block;
  text-align: left;
  color: #040404;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  border: 2px solid var(--grey-border);
  border-radius: 6px;
}

.contact-form textarea { resize: vertical; }

.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit-btn {
  width: 100%;
  padding: 10px 0;
  margin-top: 8px;
  color: #F9F7F7;
  background-color: #2D2D2D;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all .25s linear;
}

.submit-btn:hover { color: #000; background-color: #C2C2C2; }
.submit-btn:disabled { opacity: .6; cursor: default; }

.cf-status {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

.cf-status.ok { color: #2e7d32; }
.cf-status.error { color: #c62828; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--grey-card);
  padding: 15px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--grey-dark);
  font-size: 14px;
  font-weight: 500;
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { justify-self: center; max-width: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { background-attachment: scroll; }
  .portfolio-grid img { width: 110px; height: 110px; }
}
