/* ===== CSS Custom Properties ===== */
:root {
  --color-primary: #1a2744;
  --color-primary-light: #243556;
  --color-accent: #c5a55a;
  --color-accent-light: #d4ba7a;
  --color-white: #ffffff;
  --color-off-white: #f8f7f4;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-border: #e0ddd6;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --section-padding: 100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-accent-light);
}

/* ===== Utilities ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(197, 165, 90, 0.4);
}

.btn--full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--color-accent);
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.header__link:hover {
  color: var(--color-accent);
}

.header__link:hover::after {
  width: 100%;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary) url('../images/herobanner02.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(197, 165, 90, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(197, 165, 90, 0.05) 0%, transparent 50%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.65) 0%, rgba(36, 53, 86, 0.55) 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  padding: 40px 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

/* Decorative line */
.hero__content::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 32px;
}

/* ===== Sections ===== */
.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background: var(--color-off-white);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px auto 0;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.about__text p {
  margin-bottom: 20px;
  color: var(--color-text);
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ===== Practice Areas ===== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.practice-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: 4px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 3px solid transparent;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--color-accent);
}

.practice-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.practice-card__icon svg {
  width: 100%;
  height: 100%;
}

.practice-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.practice-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact__item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact__item:last-child {
  margin-bottom: 0;
}

.contact__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact__item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contact__item a {
  color: var(--color-text-light);
}

.contact__item a:hover {
  color: var(--color-accent);
}

/* Form */
.contact__form {
  background: var(--color-off-white);
  padding: 40px;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 40px;
}

.footer__inner {
  text-align: center;
}

.footer__brand strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  display: block;
  margin-bottom: 4px;
}

.footer__brand p {
  font-size: 0.9rem;
}

.footer__vat {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.6;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__nav a:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --header-height: 64px;
  }

  /* Mobile Nav */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .header__nav.open {
    right: 0;
  }

  .header__link {
    font-size: 1.1rem;
  }

  .header__name {
    font-size: 1.1rem;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo-placeholder {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Practice Grid */
  .practice-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form {
    padding: 24px;
  }

  /* Section titles */
  .section__title {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero__content::before {
    margin-bottom: 20px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .practice-card {
    padding: 28px 24px;
  }
}
