/* ============================================================
   HERNANDEZ IP — Stylesheet
   ============================================================ */

:root{
  --orange: #F59D0E;       /* Official brand orange */
  --orange-dark: #C9810B;  /* hover shade of brand orange */
  --orange-light: #FBC168; /* tint for text on dark backgrounds */
  --ink: #1E1E1D;
  --ink-soft: #727271;     /* Official brand gray */
  --gray-50: #FAFAF8;
  --gray-100: #F3F2EE;
  --gray-200: #E7E5DF;
  --line: #E2E0D8;
  --white: #FFFFFF;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(30,30,29,.08);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75em;
}
.section{ padding: 88px 0; }
.section--tight{ padding: 64px 0; }
.section--alt{ background: var(--gray-50); }
.section-head{
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all .18s ease;
  cursor: pointer;
}
.btn--primary{ background: var(--orange); color: var(--white); }
.btn--primary:hover{ background: var(--orange-dark); transform: translateY(-1px); }
.btn--ghost{ border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover{ border-color: #fff; background: rgba(255,255,255,.1); }
.btn--outline{ border-color: var(--ink); color: var(--ink); }
.btn--outline:hover{ background: var(--ink); color: var(--white); }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header img.logo{ height: 30px; width: auto; }
.nav-links{ display: flex; gap: 30px; align-items: center; }
.nav-links a{
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s;
}
.nav-links a:hover{ color: var(--orange); }
.nav-cta{
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  font-size: .88rem !important;
}
.nav-cta:hover{ background: var(--orange) !important; }
.nav-toggle{ display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span{ display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--ink);
}
.hero .container{ position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero .eyebrow{ color: var(--orange-light); text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 1px 10px rgba(0,0,0,.5); }
.hero h1{
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 15ch;
  margin-bottom: .4em;
  text-shadow: 0 1px 4px rgba(0,0,0,.8), 0 4px 22px rgba(0,0,0,.55);
}
.hero .lede{
  font-size: 1.2rem;
  max-width: 46ch;
  color: rgba(255,255,255,.92);
  margin-bottom: 2em;
  text-shadow: 0 1px 4px rgba(0,0,0,.7), 0 2px 14px rgba(0,0,0,.5);
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }
.hero-langs{
  margin-top: 56px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

/* Services grid */
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .num{
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: .4em;
}
.service-card h3{ font-size: 1.15rem; margin-bottom: .5em; }
.service-card p{ color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }

/* Practice area blocks */
.practice{
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
.practice:last-child{ border-bottom: 1px solid var(--line); }
.practice-label{ display: flex; flex-direction: column; gap: 10px; }
.practice-label .tag{
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
}
.practice-label .tag span{ color: var(--orange); }
.practice-body h3{ font-size: 1.05rem; margin: 1.2em 0 .4em; }
.practice-body h3:first-child{ margin-top: 0; }
.practice-body p{ color: var(--ink-soft); font-size: .98rem; }
.fact-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 24px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: .88rem;
}
.fact-row div{ color: var(--ink-soft); }
.fact-row strong{ color: var(--ink); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.practice .note{
  margin-top: 22px;
  font-size: .88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--orange);
  padding-left: 14px;
}

/* Team */
.team-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.team-card{
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.team-card img{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-card h3{ font-size: 1.15rem; margin-bottom: .15em; }
.team-card .role{ color: var(--orange); font-weight: 600; font-size: .85rem; margin-bottom: .8em; display: block; }
.team-card .role--stacked{
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: .8em;
}
.team-card .role--stacked span{
  color: var(--orange);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.35;
}
.team-card .role--stacked .years{
  margin-top: 5px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.team-card p{ font-size: .92rem; color: var(--ink-soft); margin-bottom: .8em; }
.team-card .langs{ font-size: .8rem; color: var(--ink-soft); font-style: italic; margin: 0; }

/* Contact */
.contact-wrap{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
}
.contact-card{
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3{ color: var(--white); font-size: 1.3rem; }
.contact-line{ display: flex; gap: 14px; margin-bottom: 18px; font-size: .98rem; }
.contact-line .k{ color: var(--orange-light); font-weight: 600; min-width: 68px; }
.contact-card a{ color: var(--white); border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-card a:hover{ border-color: var(--orange); }
.langs-strip{ margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: rgba(255,255,255,.75); }
.map-note{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--gray-50);
}
.map-note h3{ font-size: 1.05rem; }
.map-note p{ color: var(--ink-soft); font-size: .95rem; }

/* Footer */
.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
  font-size: .88rem;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 20px;
}
.footer-top img{ height: 24px; margin-bottom: 14px; }
.footer-links{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a:hover{ color: var(--orange); }
.footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Legal pages (Imprint / Data Protection) */
.legal-page{ padding: 56px 0 96px; }
.legal-page h1{ font-size: 2rem; margin-bottom: .3em; }
.legal-page .updated{ color: var(--ink-soft); font-size: .88rem; margin-bottom: 2.5em; }
.legal-page h2{ font-size: 1.2rem; margin-top: 2em; }
.legal-page p, .legal-page li{ color: var(--ink-soft); font-size: .98rem; }
.legal-page ul{ list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal-page a{ color: var(--orange); text-decoration: underline; }
.legal-page .back{ display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: .9rem; color: var(--orange); }

/* Responsive */
@media (max-width: 860px){
  .nav-links{
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 16px;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{ display: block; }
  .practice{ grid-template-columns: 1fr; gap: 18px; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .team-card{ flex-direction: column; }
  .team-card img{ width: 76px; height: 76px; }
}
@media (max-width: 600px){
  .section{ padding: 64px 0; }
  .hero{ min-height: unset; padding-top: 40px; }
}


/* Cookie consent banner */
.cookie-banner{
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink);
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.cookie-banner.is-visible{ display: flex; }
.cookie-banner__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text{
  margin: 0;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  max-width: 62ch;
}
.cookie-banner__text a{
  color: var(--orange-light);
  text-decoration: underline;
  margin-left: 6px;
}
.cookie-banner__actions{
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner .btn{
  padding: 9px 20px;
  font-size: .88rem;
}
.cookie-banner .btn--outline{
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
}
.cookie-banner .btn--outline:hover{
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
@media (max-width: 600px){
  .cookie-banner__inner{ flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions{ width: 100%; }
  .cookie-banner__actions .btn{ flex: 1; justify-content: center; }
}
