/* ============================================================
   Madalena Lordelo – Stylesheet
   ============================================================ */

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

:root {
  --green:   #4a7c59;
  --green-l: #6aab7b;
  --beige:   #f5f0e8;
  --dark:    #2c2c2c;
  --mid:     #555;
  --light:   #888;
  --white:   #ffffff;
  --radius:  6px;
  --max:     1100px;
  --font:    'Georgia', serif;
  --sans:    'Segoe UI', Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

/* ── NAV ── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { font-size: 1.2rem; font-weight: bold; color: var(--green); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
nav a {
  text-decoration: none;
  color: var(--dark);
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active { background: var(--green); color: var(--white); }
.nav-cv {
  background: var(--green);
  color: var(--white) !important;
  font-weight: bold;
}

/* ── HERO ── */
.hero {
  background: var(--beige);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; color: var(--green); margin-bottom: 0.5rem; }
.hero .subtitle { font-size: 1.2rem; color: var(--mid); font-family: var(--sans); margin-bottom: 1.5rem; }
.hero .tags { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero .tags span {
  background: var(--green);
  color: var(--white);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.hero-bio {
  max-width: 780px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
}
.social-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.social-links a {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--green-l); }

/* ── SECTIONS ── */
.section { max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.5rem; }
.section-alt { background: var(--beige); }
.section-alt .section { background: transparent; }
h2 { color: var(--green); margin-bottom: 1rem; font-size: 1.9rem; }
h3 { color: var(--green); margin-bottom: 0.6rem; font-size: 1.3rem; }
h4 { color: var(--mid); margin-bottom: 0.4rem; font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.05em; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--mid); margin-bottom: 2rem; }
hr { border: none; border-top: 1px solid #ddd; margin: 2rem 0; }

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}
th {
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
td { padding: 0.55rem 0.8rem; border-bottom: 1px solid #e0e0e0; vertical-align: top; }
tr:nth-child(even) td { background: #f9f6f0; }

/* ── CARDS ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.card p { font-size: 0.85rem; color: var(--light); font-family: var(--sans); margin: 0; }

/* ── PUB LIST ── */
.pub { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.pub .year { font-family: var(--sans); font-size: 0.8rem; font-weight: bold; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.pub p { font-size: 0.93rem; color: var(--mid); margin: 0; }
.pub a { color: var(--green); word-break: break-all; }

/* ── LIST ── */
ul.service-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.6rem; margin-bottom: 2rem; }
ul.service-list li {
  padding: 0.6rem 1rem;
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}

/* ── TESTIMONIALS ── */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.testimonial blockquote { font-style: italic; color: var(--mid); margin-bottom: 0.8rem; font-size: 0.93rem; }
.testimonial cite { font-family: var(--sans); font-weight: bold; color: var(--green); font-style: normal; font-size: 0.85rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media(max-width:640px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { font-family: var(--sans); font-size: 0.95rem; margin-bottom: 0.5rem; }
.contact-info a { color: var(--green); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.contact-form button {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--green-l); }

/* ── BUTTON ── */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.btn:hover { background: var(--green-l); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
footer a { color: var(--green-l); text-decoration: none; }

/* ── RESPONSIVE ── */
@media(max-width:700px){
  .hero h1 { font-size: 2rem; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}
