/* dr. Vörös Gréta ügyvéd – vorosgreta.hu */

/* Font: Jost, self-hosted variable font (300–600), latin and latin-ext (ő, ű) */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Colors: the plum and silver of the logo */
:root {
  color-scheme: light dark;

  /* Brand, the same in both modes */
  --plum: #3b0938;
  --plum-deep: #250523;
  --plum-glow: #5a1a54;
  --silver: #e1e2e4;
  --silver-dim: #bdb4bf;
  --on-plum: #f4eff3;
  --on-plum-soft: #e4dce3;

  /* Page */
  --paper: #faf8f7;
  --surface: #ffffff;
  --ink: #241b24;
  --muted: #6a5f6b;
  --hair: #e6e0e5;
  --heading: #3b0938;
  --link: #6a1f62;
  --link-hover: #3b0938;
  --number: #9a7f97;
  --chip: #3b0938;
  --tint: #f2ecf1;

  --font: "Jost", "Century Gothic", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --width: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151016;
    --surface: #1e171f;
    --ink: #ece7ed;
    --muted: #b3a9b5;
    --hair: #342a36;
    --heading: #e8c6e2;
    --link: #e2b9dc;
    --link-hover: #f6e1f2;
    --number: #b993b4;
    --chip: #57204f;
    --tint: #221a24;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--number);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--link);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Hero: the plum band with the header (every page) */
.hero {
  position: relative;
  color: var(--on-plum);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--plum-glow) 0%, transparent 60%),
    linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
}

/* A silver line under the band, like the gradient of the logo */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9fa0a1 20%, #fff 50%, #8f9092 80%, transparent);
  opacity: 0.6;
}

.hero a:focus-visible {
  outline-color: var(--silver);
}

/* Home page: a large, faint silver § on the right of the band, like the § of the logo (decoration only) */
.hero.home {
  overflow: hidden;
}

.hero.home .wrap {
  position: relative;
  z-index: 1;
}

.hero.home::before {
  content: "§" / "";
  display: none;
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100% - var(--width)) / 2 + var(--gutter)));
  transform: translateY(-50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14rem, 24vw, 20rem);
  line-height: 1;
  color: transparent;
  background: linear-gradient(160deg, #fff 0%, #c9cacc 45%, #8f9092 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.13;
  pointer-events: none;
}

@media (min-width: 56rem) {
  .hero.home::before {
    display: block;
  }
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo img {
  width: 120px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: #fff;
  border-bottom-color: var(--silver-dim);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--silver);
}

@media (min-width: 50rem) {
  .bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .logo img {
    width: 130px;
  }

  .site-nav ul {
    gap: 0.25rem 1.75rem;
  }

  .site-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }
}

.hero-body {
  max-width: 52rem;
  padding-top: clamp(1.25rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 300;
  line-height: 1.02;
  color: #fff;
}

.hero h1 + .cta {
  margin-top: 1.75rem;
}

/* The Bemutatkozás section of the home page: the first sentence large, the rest as normal text */
.intro {
  max-width: 36rem;
}

.intro-text {
  margin: 0 0 1.25rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 300;
  line-height: 1.5;
}

.intro p:not(.intro-text) {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.intro p:last-child {
  margin-bottom: 0;
}

@media (min-width: 56rem) {
  .intro {
    padding-top: 2.2rem;
  }
}

/* Subpages: the band holds only the logo and the menu, the title is on the page */
.page-head {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.page-head .eyebrow {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--heading);
}

.page-head p:not(.eyebrow) {
  margin: 1rem 0 0;
  font-size: 1.15rem;
}

.page-head + .section {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

/* Buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.primary {
  background: linear-gradient(135deg, #fff 0%, var(--silver) 60%, #c9cacc 100%);
  color: var(--plum);
}

.btn.primary:hover {
  color: var(--plum-deep);
  background: #fff;
}

.btn.ghost {
  border: 1px solid rgb(225 226 228 / 0.45);
  color: #fff;
}

.btn.ghost:hover {
  border-color: var(--silver);
  background: rgb(255 255 255 / 0.06);
}

/* Main */
main {
  flex: 1;
}

.section {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section:not(.tint) + .section:not(.tint) {
  padding-top: 0;
}

/* Every second section of the home page sits on a tinted band */
.section.tint {
  background: var(--tint);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.section h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--heading);
}

/* A short plum line above the section titles */
.section h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--plum-glow), var(--number));
}

.split {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1.6fr;
  }
}

.label {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Practice areas, each with a § mark */
.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

@media (min-width: 40rem) {
  .areas {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.areas li {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
  font-size: 1.15rem;
  line-height: 1.4;
}

.areas li::before {
  content: "§";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--chip);
  color: var(--silver);
  /* A serif § looks closer to the § of the logo than the one of Jost */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.areas.large li {
  padding: 1.4rem 0;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
}

/* Office and contact strip on the home page */
.strip {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .strip {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.strip h2 {
  margin-bottom: 0.5rem;
}

.facts {
  margin: 0;
}

.facts dt {
  margin-top: 1rem;
}

.facts dd {
  margin: 0;
}

/* Links to the other pages (as on the old site) */
.more {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}

.more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.more a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.more a::after {
  content: "→";
  transition: transform 0.15s ease;
}

.more a:hover {
  border-color: var(--number);
}

.more a:hover::after {
  transform: translateX(3px);
}

/* Links from the home page sections to the subpages */
.go-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 0;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.15rem;
}

.go::after {
  content: "→";
  transition: transform 0.15s ease;
}

.go:hover {
  border-bottom-color: var(--number);
}

.go:hover::after {
  transform: translateX(3px);
}

/* Iroda */
.address {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1.2rem;
}

.building {
  margin: 0;
}

.building img {
  width: 100%;
  border-radius: var(--radius);
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* Kapcsolat */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--hair);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--hair);
}

.contact-list a {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  overflow-wrap: anywhere;
}

.icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.65rem;
  border-radius: 50%;
  background: var(--chip);
  color: var(--silver);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.directions {
  margin: 0;
}

.directions img {
  width: 100%;
  max-width: 30rem;
  border-radius: var(--radius);
}

.directions figcaption {
  margin-top: 1rem;
}

/* 404 */
.not-found .more {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Footer */
.site-footer {
  background: var(--plum-deep);
  color: var(--silver-dim);
  font-size: 1rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer a {
  color: var(--silver);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a:focus-visible {
  outline-color: var(--silver);
}

.footer-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--silver);
  line-height: 1.25;
}

.footer-name span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--silver-dim);
}

.footer-contact {
  font-style: normal;
}

.footer-contact p {
  margin: 0 0 0.25rem;
}

@media (min-width: 50rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-contact {
    text-align: right;
  }
}

/* Print: no colored bands, no menu */
@media print {
  .hero,
  .site-footer {
    background: none;
    color: #000;
  }

  .hero::after,
  .site-nav,
  .cta,
  .more,
  .skip-link {
    display: none;
  }

  .hero h1,
  .eyebrow,
  .site-footer a,
  .footer-name {
    color: #000;
  }

  .logo img {
    filter: invert(1) grayscale(1);
  }
}
