:root {
  --green: #62BA47;
  --green-dark: #41962e;
  --ink: #333333;
  --near-black: #111820;
  --muted: #5e6872;
  --line: #e9edf0;
  --surface: #fbfcfa;
  --panel: #ffffff;
  --soft: #f4f7f3;
  --danger: #d5413a;
  --shadow: 0 18px 50px rgba(17, 24, 32, .08);
  --shadow-soft: 0 12px 30px rgba(17, 24, 32, .06);
  --radius: 8px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Nunito", "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 66px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 252, 250, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(17, 24, 32, .07);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 96px;
}

.brand {
  width: 168px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--ink);
  font-weight: 800;
  font-size: .95rem;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--near-black);
  font-weight: 800;
  white-space: nowrap;
}

.header-link svg,
.button svg,
.contact-list svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.header-link svg {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  gap: 10px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(98, 186, 71, .24);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 16px 34px rgba(65, 150, 46, .25);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--near-black);
  background: #fff;
  border-color: #cfd7dd;
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.button-small {
  min-height: 48px;
  padding: 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 56px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(251, 252, 250, 0) 72%),
    radial-gradient(circle at 78% 42%, rgba(98, 186, 71, .08), transparent 34%);
}

.hero::before {
  position: absolute;
  inset: auto -120px 20px auto;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(98, 186, 71, .1), rgba(98, 186, 71, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--near-black);
  font-size: clamp(3.4rem, 7vw, 5.9rem);
  line-height: .9;
  letter-spacing: 0;
}

h1 span {
  color: var(--green);
}

h2 {
  color: var(--near-black);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--near-black);
  line-height: 1.2;
}

.lead {
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--near-black);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.device-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  border-radius: 28px;
  background: radial-gradient(circle at 52% 62%, rgba(255, 255, 255, .9), rgba(251, 252, 250, 0) 62%);
}

.device-scene > img {
  width: min(100%, 720px);
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(17, 24, 32, .12));
}

.laptop {
  position: absolute;
  top: 24px;
  right: 66px;
  width: 430px;
  height: 286px;
  background: linear-gradient(145deg, #333d43, #07090b 55%, #171b1d);
  border: 7px solid #20272d;
  border-radius: 16px 16px 8px 8px;
  box-shadow: var(--shadow);
}

.laptop::after {
  position: absolute;
  right: -28px;
  bottom: -32px;
  left: -28px;
  height: 28px;
  background: linear-gradient(180deg, #f7f8f9, #dfe5e9);
  border-radius: 2px 2px 22px 22px;
  box-shadow: 0 15px 22px rgba(17, 24, 32, .12);
  content: "";
}

.laptop img {
  position: absolute;
  top: 96px;
  left: 50%;
  width: 62px;
  transform: translateX(-50%);
}

.screen-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 34%), radial-gradient(circle at 68% 53%, rgba(98, 186, 71, .22), transparent 24%);
  border-radius: 8px;
}

.phone-left {
  position: absolute;
  top: 128px;
  left: 26px;
  width: 112px;
  height: 214px;
  background: linear-gradient(145deg, #4b555b, #1f262a);
  border: 6px solid #171c20;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.phone-left::before {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 18px;
  height: 18px;
  background: #13181b;
  border: 2px solid #7d8790;
  border-radius: 50%;
  content: "";
  box-shadow: 26px 0 0 #13181b, 13px 26px 0 #13181b;
}

.phone-left span {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  height: 8px;
  background: rgba(255, 255, 255, .16);
  border-radius: 20px;
}

.tablet {
  position: absolute;
  top: 110px;
  right: 0;
  width: 226px;
  height: 314px;
  background: #11161a;
  border: 8px solid #22292f;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.tablet span {
  position: absolute;
  inset: 18px;
  background: linear-gradient(145deg, rgba(98, 186, 71, .9), rgba(9, 22, 21, .15) 35%, rgba(98, 186, 71, .7) 50%, rgba(9, 22, 21, .95) 70%);
  filter: blur(.2px);
  transform: skew(-12deg);
}

.watch {
  position: absolute;
  bottom: 60px;
  left: 172px;
  width: 70px;
  height: 86px;
  background: #11161a;
  border: 5px solid #252b30;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.watch::before,
.watch::after {
  position: absolute;
  left: 18px;
  width: 26px;
  height: 28px;
  background: #11161a;
  content: "";
}

.watch::before {
  top: -32px;
  border-radius: 12px 12px 4px 4px;
}

.watch::after {
  bottom: -32px;
  border-radius: 4px 4px 12px 12px;
}

.watch span {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(98, 186, 71, .65);
}

.controller {
  position: absolute;
  right: 178px;
  bottom: 36px;
  width: 190px;
  height: 112px;
  background: linear-gradient(180deg, #f8fafb, #e9edf0);
  border: 2px solid #d2d8dd;
  border-radius: 38px 38px 52px 52px;
  box-shadow: var(--shadow-soft);
}

.controller::before,
.controller::after {
  position: absolute;
  top: 32px;
  content: "";
}

.controller::before {
  left: 34px;
  width: 38px;
  height: 12px;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 13px -13px 0 -3px var(--ink), 13px 13px 0 -3px var(--ink);
}

.controller::after {
  right: 38px;
  width: 12px;
  height: 12px;
  background: #aab3ba;
  border-radius: 50%;
  box-shadow: 20px 0 0 #aab3ba, 10px 18px 0 #aab3ba;
}

.controller span {
  position: absolute;
  bottom: 28px;
  width: 34px;
  height: 34px;
  background: #2d3439;
  border-radius: 50%;
}

.controller span:first-child {
  left: 76px;
}

.controller span:last-child {
  right: 48px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: grid;
  place-items: center;
  min-height: 176px;
  padding: 18px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  color: var(--green-dark);
  background: rgba(98, 186, 71, .1);
  border-radius: 50%;
}

.icon-circle svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  filter: drop-shadow(0 10px 12px rgba(65, 150, 46, .1));
}

.quality {
  background: linear-gradient(180deg, rgba(255, 255, 255, .52), var(--soft));
}

.quality-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
}

.quality-item {
  min-height: 146px;
  padding: 16px 20px 0;
  text-align: center;
  border-right: 1px solid #dfe6e1;
}

.quality-item:last-child {
  border-right: 0;
}

.quality-item svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  fill: var(--green);
  filter: drop-shadow(0 12px 18px rgba(98, 186, 71, .18));
}

.quality-item h3 {
  max-width: 170px;
  margin: 0 auto;
  font-size: 1.04rem;
}

.contact {
  padding-top: 42px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--panel);
}

.contact-card {
  padding: 32px;
}

.contact-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--near-black);
}

.contact-list svg {
  color: var(--green);
  margin-top: 1px;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--green-dark);
}

.hours {
  margin: 24px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hours h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.hours p {
  margin-bottom: 8px;
}

.closed {
  color: var(--danger);
  font-size: .94rem;
}

.map-card {
  min-height: 420px;
  overflow: hidden;
}

.map-paper {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(191, 204, 214, .28) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(191, 204, 214, .28) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(145deg, #f8fbfd, #edf5f9 60%, #e5f4ec);
}

.road {
  position: absolute;
  height: 5px;
  background: rgba(184, 195, 204, .75);
  border-radius: 999px;
  transform-origin: left center;
}

.road-a {
  top: 42%;
  left: -5%;
  width: 80%;
  transform: rotate(-12deg);
}

.road-b {
  top: 22%;
  left: 28%;
  width: 74%;
  transform: rotate(28deg);
}

.road-c {
  top: 65%;
  left: 12%;
  width: 62%;
  transform: rotate(2deg);
}

.road-d {
  top: 8%;
  left: 62%;
  width: 70%;
  transform: rotate(102deg);
}

.coast {
  position: absolute;
  right: -6%;
  bottom: -72px;
  left: -10%;
  height: 150px;
  background: #85d9e5;
  border-radius: 54% 46% 0 0;
}

.map-info {
  position: absolute;
  top: 42px;
  left: 42px;
  display: grid;
  gap: 4px;
  width: min(240px, calc(100% - 84px));
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.map-info small {
  color: var(--muted);
}

.map-info a {
  color: var(--green-dark);
  font-weight: 900;
}

.pin {
  position: absolute;
  top: 47%;
  left: 52%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #fff;
  background: var(--green);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 14px 30px rgba(65, 150, 46, .28);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pin svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  transform: rotate(45deg);
}

.estoril-label {
  position: absolute;
  top: 63%;
  left: 50%;
  color: var(--near-black);
  font-size: 1.55rem;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
}

.footer-brand {
  width: 132px;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #8a9299;
  border: 1px solid #d8dee2;
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

:focus-visible {
  outline: 3px solid rgba(98, 186, 71, .45);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .device-scene {
    min-height: 390px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quality-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .quality-item:nth-child(3) {
    border-right: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 48px 0;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 82px;
  }

  .brand {
    width: 132px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-link span,
  .hide-small {
    display: none;
  }

  .header-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .button-small {
    width: 48px;
    padding: 0;
  }

  .button-small span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero {
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .device-scene {
    min-height: auto;
    margin-top: 8px;
  }

  .card-grid,
  .quality-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .quality-item {
    min-height: auto;
    padding: 16px 0 22px;
    border-right: 0;
    border-bottom: 1px solid #dfe6e1;
  }

  .quality-item:last-child {
    border-bottom: 0;
  }

  .contact-card {
    padding: 26px;
  }

  .map-info {
    top: 24px;
    left: 24px;
    width: min(230px, calc(100% - 48px));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .device-scene {
    margin-top: 0;
  }

  .icon-circle {
    width: 104px;
    height: 104px;
  }

  .icon-circle svg {
    width: 62px;
    height: 62px;
  }

  .contact-list li {
    grid-template-columns: 22px 1fr;
    gap: 12px;
  }
}

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