@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", serif;

  --color-primary: #1E3A8A;
  --color-accent: #3B82F6;
  --color-paper: #F8FAFC;
  --color-dark: #0F172A;
  --color-white: #FFFFFF;

  --max-width: 1280px;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fix navbar: hero és horgonyok mindig a menü alatt kezdődjenek */
  --nav-height: 4rem;
  --hero-below-nav: calc(env(safe-area-inset-top, 0px) + var(--nav-height) + 1.75rem);
  --scroll-anchor-offset: calc(env(safe-area-inset-top, 0px) + var(--nav-height) + 0.75rem);
}

@media (min-width: 768px) {
  :root {
    --nav-height: 6rem;
    --hero-below-nav: calc(env(safe-area-inset-top, 0px) + var(--nav-height) + 2rem);
  }
}

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

body {
  background-color: var(--color-paper);
  color: var(--color-dark);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-padding-top: var(--scroll-anchor-offset);
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  background-color: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.navbar-container {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: var(--transition);
}

.logo-text {
  display: flex;
}

.logo-name {
  font-size: 0.9rem;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 480px) {
  .logo-name {
    font-size: 1.2rem;
  }
}

.logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.5;
  font-weight: 700;
  margin-left: 5px;
  display: none;
}

@media (min-width: 480px) {
  .logo-sub { display: inline; }
  .logo-name { font-size: 1.1rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-consult {
  border-radius: 50px;
  background-color: var(--color-dark);
  color: var(--color-paper);
  padding: 0.75rem 2rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
}

.btn-consult:hover {
  background-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: auto;
  padding-top: var(--hero-below-nav);
  padding-bottom: 3.5rem;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero {
    min-height: min(100vh, 900px);
    padding-top: var(--hero-below-nav);
    padding-bottom: 4rem;
    display: flex;
    align-items: flex-start;
  }
}

.hero-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: min(55vw, 720px);
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.07) 0%,
    rgba(59, 130, 246, 0.04) 50%,
    transparent 100%
  );
  transform: skewX(-10deg) translateX(18%);
  pointer-events: none;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  /* A szövegsáv bal oldalán maradjon világos; a folt a jobb+felső részen legyen */
  background: radial-gradient(
    ellipse 70% 50% at 82% 18%,
    rgba(30, 58, 138, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem 3rem;
    align-items: center;
  }

  .hero-content-inner {
    grid-column: 1 / span 7;
    padding-right: 0.5rem;
  }

  .hero-image-container {
    grid-column: 8 / span 5;
  }
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
  row-gap: 0.35rem;
  font-size: clamp(0.6875rem, 0.65rem + 0.35vw, 0.8125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.45;
  color: var(--color-dark);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

.hero-tagline-item {
  white-space: nowrap;
  opacity: 1;
  color: inherit;
}

.hero-tagline-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  flex-shrink: 0;
  align-self: center;
}

@media (min-width: 480px) {
  .hero-tagline {
    letter-spacing: 0.26em;
    gap: 0.55rem 0.55rem;
  }
}

@media (min-width: 1024px) {
  .hero-tagline {
    margin-top: 0;
    margin-bottom: 1.75rem;
    letter-spacing: 0.32em;
  }
}

.hero-title {
  font-size: clamp(2rem, 6vw + 0.5rem, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  max-width: 16ch;
}

@media (min-width: 1024px) {
  .hero-title {
    max-width: none;
    font-size: clamp(3.25rem, 4.2vw + 1.5rem, 6.25rem);
  }
}

.hero-title-accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: rgba(30, 58, 138, 0.92);
  margin-top: 0.15em;
}

@media (min-width: 640px) {
  .hero-title-accent {
    display: inline;
    margin-top: 0;
  }
}

.hero-title .italic {
  font-style: italic;
  color: rgba(30, 58, 138, 0.8);
}

.hero-role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.55);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-role {
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
  }
}

.hero-desc {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem);
  color: rgba(15, 23, 42, 0.72);
  margin-bottom: 2rem;
  line-height: 1.65;
  font-weight: 300;
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .hero-desc {
    margin-bottom: 2.25rem;
  }
}

.hero-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (min-width: 480px) {
  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.75rem;
  }
}

.hero-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-highlight-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-highlight-value {
    font-size: 1.75rem;
  }
}

.hero-highlight-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.45);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 520px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
  }
}

.btn-primary-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-paper);
  padding: 1.1rem 1.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.2);
}

@media (min-width: 520px) {
  .btn-primary {
    padding: 1.15rem 2rem;
  }
}

.btn-primary:hover {
  background-color: var(--color-dark);
  transform: translateY(-4px) scale(1.02);
}

.btn-secondary {
  border: 1px solid rgba(30, 58, 138, 0.22);
  border-radius: 4px;
  padding: 1.1rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

@media (min-width: 520px) {
  .btn-secondary {
    padding: 1.15rem 1.75rem;
  }
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(30, 58, 138, 0.04);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.hero-image-container {
  position: relative;
  margin-top: 0.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-image-container {
    margin-top: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 32px 64px -24px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.04);
}

.hero-image-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
}

.hero-image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0.85;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  margin-top: -2.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  z-index: 2;
  background-color: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 22px 40px -20px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 1024px) {
  .hero-badge {
    position: absolute;
    bottom: 1.5rem;
    left: -1.25rem;
    right: auto;
    margin: 0;
    max-width: min(100%, 280px);
    padding: 1.25rem 1.5rem;
  }
}

.badge-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-text {
  min-width: 0;
}

.badge-value {
  font-size: 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

@media (min-width: 480px) {
  .badge-value {
    font-size: 1.125rem;
  }
}

.badge-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
  font-weight: 700;
}

/* Practice Areas */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 10rem 0;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 6rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title-wrapper {
  max-width: 42rem;
}

.section-tagline {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 1.75rem;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.75rem;
  }
}

.section-divider {
  width: 8rem;
  height: 1px;
  background-color: rgba(30, 58, 138, 0.2);
  display: none;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-divider {
    display: block;
  }
}

.grid-areas {
  display: grid;
  gap: 1px;
  background-color: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
  .grid-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-areas {
    grid-template-columns: repeat(4, 1fr);
  }
}

.area-card {
  padding: 2rem;
  background-color: var(--color-white);
  transition: var(--transition);
  position: relative;
}

@media (min-width: 640px) {
  .area-card {
    padding: 3rem;
  }
}

.area-card:hover {
  background-color: rgba(30, 58, 138, 0.02);
}

.area-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.25rem;
  font-family: var(--font-serif);
  color: rgba(15, 23, 42, 0.2);
  transition: color 0.5s;
}

.area-card:hover .area-number {
  color: rgba(30, 58, 138, 0.3);
}

.area-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}

.area-title {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  transition: transform 0.5s;
}

.area-card:hover .area-title {
  transform: translateX(0.5rem);
}

.area-desc {
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.area-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s;
}

.area-card:hover .area-link {
  color: var(--color-primary);
}

.area-link-line {
  width: 2rem;
  height: 1px;
  background-color: rgba(15, 23, 42, 0.2);
  transition: all 0.5s;
}

.area-card:hover .area-link-line {
  width: 3rem;
  background-color: var(--color-primary);
}

/* About Section */
.about-grid {
  display: grid;
  gap: 6rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-image-container {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1s;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-image-frame {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(30, 58, 138, 0.1);
  z-index: -1;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

@media (min-width: 480px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .about-stats {
    gap: 4rem;
  }
}

.stat-value {
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  opacity: 0.4;
}

/* Contact Section */
.contact {
  background-color: var(--color-dark);
  color: var(--color-paper);
  position: relative;
  overflow: hidden;
}

.contact-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 58, 138, 0.1);
  transform: skewY(-6deg) translateY(50%);
}

.contact-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(248, 250, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s;
}

.contact-item:hover .contact-icon-wrapper {
  border-color: rgba(30, 58, 138, 0.5);
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.contact-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-value {
  color: rgba(248, 250, 252, 0.4);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Maps Section */
.maps-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .maps-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.maps-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  transition: color 0.5s;
}

.maps-link:hover {
  color: var(--color-primary);
}

.maps-link-line {
  width: 3rem;
  height: 1px;
  background-color: rgba(15, 23, 42, 0.2);
  transition: all 0.5s;
}

.maps-link:hover .maps-link-line {
  width: 5rem;
  background-color: var(--color-primary);
}

.map-wrapper {
  height: min(55vh, 450px);
  min-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
  .map-wrapper {
    height: 450px;
  }
}

/* Footer */
.footer {
  padding: 5rem 0;
  background-color: var(--color-paper);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo-desc {
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.5);
  margin-top: 1.5rem;
  max-width: 20rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.6);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.social-link:hover {
  opacity: 1;
}

/* Mobile Menu */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-dark);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-toggle:hover {
  background-color: rgba(15, 23, 42, 0.06);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.mobile-toggle-icons {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: var(--color-paper);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-family: var(--font-serif);
}

.btn-mobile-consult {
  background-color: var(--color-dark);
  color: var(--color-paper);
  width: 100%;
  padding: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}

.office-gallery {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(
    180deg,
    rgba(30, 58, 138, 0.04) 0%,
    rgba(59, 130, 246, 0.06) 45%,
    rgba(30, 58, 138, 0.03) 100%
  );
}

@media (min-width: 768px) {
  .office-gallery {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.office-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.office-gallery-media {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(30, 58, 138, 0.08),
    0 22px 40px -20px rgba(30, 58, 138, 0.22);
  border: 1px solid rgba(30, 58, 138, 0.14);
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: -1px;
}

.office-gallery-media img {
  width: 100%;
  height: auto;
  display: block;
}

.office-gallery-caption {
  align-self: center;
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.4;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  color: var(--color-paper);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 55%, var(--color-accent) 160%);
  box-shadow:
    0 10px 22px -10px rgba(30, 58, 138, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Legyen biztosan kattintható és látható */
.btn-consult, .btn-mobile-consult {
    cursor: pointer;
    position: relative;
    z-index: 1010; /* Magasabb, mint a maszkoké */
    pointer-events: auto !important;
    display: inline-block;
}

/* Mobilon a sima nav-linkeket rejtsük el, de a mobil menüt tegyük rendbe */
@media (max-width: 767px) {
    .nav-links {
        display: none; /* A desktop gomb itt tűnik el */
    }
    
    .mobile-menu {
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + var(--nav-height));
        left: 0;
        width: 100%;
        background: var(--color-paper);
        display: none; /* Alapból rejtve */
        flex-direction: column;
        padding: 2rem;
        border-bottom: 2px solid var(--color-primary);
    }

    .mobile-menu.active {
        display: flex; /* Csak akkor látszik, ha megnyitják */
    }
}

@media (min-width: 600px) and (max-width: 900px) {
  .grid-areas {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--hero-below-nav) + 0.25rem);
    padding-bottom: 3rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .hero-tagline {
    letter-spacing: 0.12em;
    gap: 0.35rem 0.4rem;
  }

  .logo-name {
    font-size: 0.8rem;
  }
}

.nav-links {
  gap: 1.5rem; /* Csökkentett rés asztali és tablet nézet között */
}

@media (min-width: 1200px) {
  .nav-links {
    gap: 3rem; /* Csak nagy monitoron legyen nagy távolság */
  }
}

@media (max-width: 900px) {
  .hero-bg-accent, .contact-bg-accent {
    transform: none; /* Kikapcsoljuk a döntést, sima háttér lesz */
    width: 100%;
    opacity: 0.03;
  }
}


/*Itt kezdődik a cookie banner stílusa*/
/*Itt van a HIBA!!!*/


/* Alap konténer: az oldal aljára rögzítjük */
.cookie {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: #ffffff;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #eee;
}

/* Szöveg stílusa */
.cookie p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Gombok tárolója */
.cookie-gombok {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Közös gomb stílusok */
button {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

/* "Beállítások" gomb - kevésbé hangsúlyos */
.cookie-beallitasok {
    background-color: transparent;
    color: #666;
    text-decoration: underline;
}

.cookie-beallitasok:hover {
    color: #000;
    background-color: #f0f0f0;
}

/* "Elfogadom" gomb - kiemelt (Call to Action) */
.cookie-elfogad {
    background-color: #2563eb;
    color: white;
}

.cookie-elfogad:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobilos nézet: a gombok egymás alá kerülnek, ha kevés a hely */
@media (max-width: 480px) {
    .cookie {
        bottom: 10px;
        padding: 15px;
    }
    
    .cookie-gombok {
        flex-direction: column-reverse;
        width: 100%;
    }

    .cookie button {
        width: 100%;
    }
}


.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}


.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.option-info strong { display: block; font-size: 14px; }
.option-info span { font-size: 12px; color: #777; }

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #2563eb; }
input:checked + .slider:before { transform: translateX(20px); }

.btn-save {
    width: 100%;
    margin-top: 20px;
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
}
