/*
  Karameh & Partners — Coming soon
  - Hero: --hero-image (./principal.png)
  - Contact + footer: black (--black)
*/

:root {
  --navy-deep: #0a1628;
  --navy-mid: #121f35;
  --pine: #1e4d3d;
  --pine-deep: #163d30;
  --gold-antique: #c4a574;
  --gold-subtle: rgba(196, 165, 116, 0.45);
  --black: #000000;
  --white: #ffffff;
  --gray-line: rgba(255, 255, 255, 0.22);
  --gray-muted: rgba(255, 255, 255, 0.55);
  --gray-fine: rgba(255, 255, 255, 0.38);
  --hero-image: url("./principal.png");

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --radius-sm: 6px;
  --radius-pill: 999px;
  --focus-ring: 2px solid var(--gold-antique);
  --focus-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

/* ========== Hero ========== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(52vh, 70vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--navy-deep);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.55) 100%);
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(10, 22, 40, 0.35) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  max-height: clamp(112px, 28vw, 208px);
  width: auto;
  object-fit: contain;
  margin: 0 auto clamp(1.25rem, 3.5vw, 1.75rem);
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.45));
}

.hero__firm {
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.15rem);
  max-width: 36ch;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.75vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.hero__lede {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.0625rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

.hero__lede::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-antique), transparent);
  opacity: 0.85;
}

/* ========== Contact ========== */
.contact {
  background: var(--black);
  padding: clamp(3rem, 9vw, 5.5rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.contact__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.02em;
  color: var(--white);
}

.contact__subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  color: var(--gray-muted);
}

.contact__switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-line);
  background: rgba(255, 255, 255, 0.05);
}

.contact__tab {
  flex: 1;
  max-width: 200px;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.contact__tab:hover {
  color: var(--white);
}

.contact__tab.is-active {
  color: var(--black);
  background: var(--white);
}

.contact__tab:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.contact__panel[hidden] {
  display: none !important;
}

.contact__panel.is-visible {
  display: block;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.req {
  color: var(--gold-antique);
  font-weight: 600;
  text-decoration: none;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--gray-fine);
}

.contact-form__field input:hover,
.contact-form__field textarea:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: none;
  border-color: var(--gold-antique);
  box-shadow: 0 0 0 1px var(--gold-subtle);
}

.contact-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-send {
  min-width: 11rem;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.btn-send:active {
  transform: translateY(0);
}

.btn-send:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.contact-form__fineprint {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--gray-fine);
  text-align: center;
}

.contact-wa__text {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--gray-muted);
  font-size: 1rem;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  font-size: clamp(0.7rem, 2.2vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-wa:hover {
  border-color: var(--gold-antique);
  color: var(--gold-antique);
  background: rgba(196, 165, 116, 0.08);
}

.btn-wa:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ========== Footer ========== */
.foot {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.foot__line {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-fine);
}

/* ========== Cookie banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem clamp(1rem, 4vw, 1.5rem);
  background: rgba(10, 22, 40, 0.92);
  border-top: 1px solid rgba(196, 165, 116, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.cookie-banner__title {
  margin: 0;
  width: 100%;
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
  .cookie-banner__title {
    width: auto;
    flex-basis: auto;
  }
  .cookie-banner__inner {
    flex-wrap: nowrap;
  }
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  min-width: min(100%, 280px);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-muted);
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cookie-banner__btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hero {
    min-height: min(70vh, 560px);
  }

  .contact__switch {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }

  .contact__tab {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
