/* =========================
   RESET AND THEME
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #263c53;
  --muted: #60778f;
  --accent: #043b1a;
  --accent-light: #0a642e;
  --field: #f4f8fc;
  --light-green: #68da4c95;
  --field-border: #d8e3ef;
  --white: #fff;
  --shadow: 0 14px 40px rgba(38, 60, 83, .08);
  --radius: 1.15rem;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
ul, ol {list-style: none; margin: 0; padding: 0;}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =========================
   HEADER 
========================= */
.header {
  position: relative;
  z-index: 10;
  width: min(92%, 1400px);
  min-height: 100px;
  margin-inline: auto;
  padding: 1.15rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #edf1f5;
}
.header__Logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
  max-width: 22rem;
  color: #174a32;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eaf1f6;
  color: var(--accent-dark);
  font-size: 1.8rem;
  font-weight: 800;
  border: 2px solid #d4e0ec;
}
.header__Logo p {
  margin: 0;
  font-size: clamp(.78rem, 1.3vw, 1.08rem);
  font-weight: 800;
  line-height: 1.2;
}
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; align-items: center; gap: clamp(0.8rem, 2.7vw, 1.6rem); }
.header__nav a {
  display: block;
  position: relative;
  padding: .7rem .4rem;
  font-size: .98rem;
  /* font-weight: 600; */
  white-space: nowrap;
  color: var(--ink);
}
.header__nav a::after {
  position: absolute;
  content: "";
  left: .4rem;
  right: .4rem;
  bottom: .25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.header__nav a:hover::after,
.header__nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__menu, #menu-toggle { display: none; }
.hamburger { color: var(--ink); cursor: pointer; }
.hamburger svg { width: 2rem; height: 2rem; }
.hamburger line {
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  transform-box: view-box; transform-origin: center; transition: transform .25s ease, opacity .2s ease;
}

/* =========================
   CONTACT SECTION
========================= */
.main { width: min(92%, 1400px); margin: 2.25rem auto 4rem; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 600px;
}
.contact__content { width: 100%; max-width: 660px; padding-block: 1rem; }
.contact__heading { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .5rem; }
.heading-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: clamp(3.5rem, 5vw, 5rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--accent); color: white;
}
.heading-icon svg { width: 58%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
h1 { margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.5rem); letter-spacing: -.045em; line-height: 1.05; color: var(--accent); }
.contact__subtitle { margin: .35rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.4rem); font-weight: 600; }
.contact__intro { max-width: 42rem; margin: 1.2rem 0 1.35rem; color: #62758a; font-size: 1rem; }
.contact-form { display: grid; gap: .8rem; }
.field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 3.65rem;
  padding: .65rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: 1rem;
  background: var(--field);
  transition: border-color .2s ease, box-shadow .2s ease, .2s ease;
}
.field:focus-within { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(83,111,139,.12); }
.field-icon { flex: 0 0 1.5rem; color: var(--accent); text-align: center; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.field input:not([type="file"]), .field textarea {
  width: 100%; min-width: 0; padding: .15rem 0;
  border: 0; outline: 0; background: transparent; color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #74879d; opacity: 1; }
.field input[type="file"] { width: 100%; min-width: 0; color: #71849a; font-size: .9rem; }
.field input[type="file"]::file-selector-button {
  margin-right: .7rem; padding: .45rem .7rem; border: 0; border-radius: .55rem;
  background: #e0e9f2; color: var(--ink); cursor: pointer;
}
.field--message { align-items: flex-start; min-height: 8rem; }
.field--message textarea { min-height: 6.3rem; resize: vertical; }
.field-icon--top { padding-top: .2rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .25rem; }
.button {
  background: var(--accent);
  min-width: 10rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.5rem; padding: .75rem 1.5rem;
  border: 2px solid var(--accent); border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(38,60,83,.14); }
.button span { font-size: 1.25rem; }
.button--send { background: var(--accent); color: white; }
.button--send:hover { background: var(--accent-light); }
.button--reset { background: white; color: var(--accent-dark); }
.button--reset:hover { background: #edf3f8; }
.form-note { margin: .15rem 0 0; color: #7b8b9c; font-size: .78rem; }
.contact__visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.contact__visual img { width: 100%; max-width: 760px; height: auto; object-fit: contain; }

/* Tablet */
@media (max-width: 1000px) {
  .header { gap: 1rem; }
  .header__Logo { max-width: 18rem; }
  .header__nav ul { gap: .45rem; }
  .header__nav a { font-size: .88rem; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1.5rem; }
  .contact__visual img { width: 115%; max-width: none; }
  h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); }
}

/* Switch to hamburger navigation and stack the contact content */
@media (max-width: 780px) {
  .header { min-height: 78px; width: 92%; }

  .header__Logo { max-width: calc(100% - 4rem); }
  .header__Logo p { max-width: 12rem; font-size: clamp(.72rem, 2.5vw, .95rem); }
  .logo-mark { width: 2.8rem; font-size: 1.5rem; }

  .header__menu { display: block; margin-left: auto; }
  #menu-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .hamburger { display: block; padding: .25rem; } 
  .header:has(#menu-toggle:checked) .header__nav {display: block; opacity: 1;visibility: visible; pointer-events: auto; }
  #menu-toggle:checked + .hamburger .line1{ transform: translateY(4px) rotate(42.5deg);}
  #menu-toggle:checked + .hamburger .line2{ opacity: 0;}
  #menu-toggle:checked + .hamburger .line3{transform: translateY(-4px) rotate(-42.5deg);}

  .header__nav {
    display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0;
    margin: 0; padding: .5rem 1rem 1rem; background: white;
    border: 1px solid #edf1f5; border-radius: 0 0 1rem 1rem; box-shadow: var(--shadow);
  }
  .header__nav ul { display: flex; flex-direction: column; align-items: stretch; gap: .1rem; }
  .header__nav a { padding: .8rem 1rem; text-align: center; font-size: 1rem; }
  .header__nav a::after { display: none; }
  
  .main { margin-top: 1.5rem; }
  .contact { grid-template-columns: 1fr; gap: 1rem; }
  .contact__content { max-width: 650px; margin-inline: auto; }
  .contact__visual { grid-row: 2; }
  .contact__visual img { width: min(100%, 650px); max-width: 100%; display: none;}
}

/* Phones */
@media (max-width: 480px) {
  .header { padding-block: .8rem; }
  .header__Logo { gap: .55rem; }
  .header__Logo p { max-width: 9rem; font-size: .72rem; }
  .logo-mark { width: 2.45rem; }
  .main { width: 92%; margin-top: 1.1rem; }
  .contact__heading { gap: .75rem; }
  .heading-icon { width: 3.1rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .contact__subtitle { font-size: .98rem; }
  .contact__intro { margin-block: .9rem 1rem; font-size: .93rem; }
  .contact-form { gap: .65rem; }
  .field { min-height: 3.35rem; padding: .55rem .75rem; gap: .65rem; border-radius: .85rem; }
  .field-icon { flex-basis: 1.25rem; font-size: 1.25rem; }
  .field input[type="file"] { font-size: .78rem; }
  .field--message { min-height: 7rem; }
  .field--message textarea { min-height: 5.5rem; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .button { min-width: 0; min-height: 3.15rem; padding: .6rem .8rem; }
  .form-note { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
