:root {
  color-scheme: light;
  --ink: #164d55;
  --muted: #52676c;
  --accent: #dc8d28;
  --surface: #ffffff;
  --wash: #edf4ed;
  --line: #d5e1dc;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  height: auto;
  min-height: 100%;
  overflow-y: scroll;
}

body {
  height: auto;
  min-height: 100%;
  margin: 0;
  overflow: visible;
  color: var(--ink);
  background: #edf0ed url("./tapizpaginajustaley.jpg") center / cover fixed;
  line-height: 1.6;
}

a { color: #a95813; }
a:hover { color: #6e3b10; }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 4px solid var(--accent);
}

.header-inner, main, .site-footer {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand img { display: block; width: 190px; height: auto; }

nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

main { padding: 48px 0; }

article {
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(22, 77, 85, .14);
  padding: clamp(28px, 6vw, 60px);
}

h1, h2 { color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 36px 0 10px; }
p, li { max-width: 72ch; }
.intro { color: var(--muted); font-size: 1.15rem; margin-top: 0; }
.notice { background: var(--wash); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 18px; }
.contact-card { background: var(--wash); border-radius: 12px; padding: 20px; margin: 24px 0; }
.contact-card p { margin: 6px 0; }

.site-footer {
  color: #f8ffff;
  padding: 0 0 34px;
  text-align: center;
  text-shadow: 0 1px 2px #244;
}
.site-footer a { color: #fff3df; }

.landing-page { font-size: 16px; overflow: visible; }
.landing-page .site-header { background: rgba(255, 255, 255, .98); border-bottom: 4px solid var(--accent); position: sticky; top: 0; transition: box-shadow .2s ease, background-color .2s ease; z-index: 20; }
.landing-page .site-header.is-compact { background: rgba(255, 255, 255, .99); box-shadow: 0 5px 18px rgba(22, 77, 85, .16); }
.landing-page .header-inner { transition: padding .52s cubic-bezier(.22, 1, .36, 1); }
.landing-page .brand { display: block; flex: 0 0 auto; height: 113px; position: relative; transition: height .52s cubic-bezier(.22, 1, .36, 1), width .52s cubic-bezier(.22, 1, .36, 1); width: 190px; }
.landing-page .brand-full, .landing-page .brand-compact { left: 0; position: absolute; top: 50%; transform-origin: left center; }
.landing-page .brand-full { opacity: 1; transform: translateY(-50%) scale(1); transition: opacity .24s ease .05s, transform .48s cubic-bezier(.22, 1, .36, 1), width .48s cubic-bezier(.22, 1, .36, 1); width: 190px; }
.landing-page .brand-compact { display: block; height: 46px; object-fit: contain; opacity: 0; transform: translateY(-50%) scale(1.18); transition: opacity .15s ease, transform .28s ease; width: auto; }
.landing-page .site-header.is-compact .header-inner { padding: 8px 0; }
.landing-page .site-header.is-compact .brand { height: 46px; width: 138px; }
.landing-page .site-header.is-compact .brand-full { opacity: 0; transform: translateY(-50%) scale(.38); transition-delay: 0s; }
.landing-page .site-header.is-compact .brand-compact { opacity: 1; transform: translateY(-50%) scale(1); transition: opacity .2s ease .22s, transform .48s cubic-bezier(.16, 1.35, .3, 1) .16s; }
.landing-page .site-header nav { gap: 6px; }
.landing-page .site-header nav a { border-bottom: 2px solid transparent; color: var(--ink) !important; display: inline-flex; font-size: .9rem; font-weight: 800; padding: 8px 10px; text-decoration: none !important; transition: border-color .18s ease, color .18s ease; }
.landing-page .site-header nav a:hover, .landing-page .site-header nav a:focus-visible { border-bottom-color: var(--accent); color: #a65d19 !important; outline: none; text-decoration: none !important; }
.landing-page main { padding: 48px 0; }
.landing-page .hero, .landing-page .section, .landing-page .trust-section, .landing-page .contact-section { margin-bottom: 72px; }
.hero { align-items: end; background: linear-gradient(130deg, rgba(255, 255, 255, .97), rgba(245, 250, 244, .88)); border: 1px solid rgba(255, 255, 255, .78); border-radius: 20px; box-shadow: 0 16px 42px rgba(22, 77, 85, .16); display: grid; gap: 36px; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); min-height: 520px; padding: clamp(36px, 7vw, 84px); }
.eyebrow, .card-label { color: #a65d19; font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 12px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 4.8rem); letter-spacing: -.055em; max-width: 10ch; }
.hero-lead { color: var(--muted); font-size: 1.18rem; max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.landing-page .button { border: 2px solid transparent; border-radius: 999px; display: inline-flex; font-weight: 700; justify-content: center; padding: 12px 18px; text-decoration: none !important; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.landing-page .button:hover { text-decoration: none !important; transform: translateY(-2px); }
.landing-page .button-primary { background: #d77d21; color: #fff !important; }
.landing-page .button-primary:hover { background: #b75f12; color: #fff !important; }
.landing-page .button-secondary { border-color: #20636a; color: #164d55 !important; }
.landing-page .button-secondary:hover { background: #20636a; color: #fff !important; }
.hero-card { background: #17606a; border-radius: 14px; border-top: 6px solid var(--accent); box-shadow: 0 12px 28px rgba(16, 70, 77, .22); color: #eefaf7; padding: 26px; }
.hero-card .card-label, .trust-section .eyebrow { color: #f6c587; }
.hero-card-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; }
.hero-card a { color: #ffe1b8; font-weight: 700; }
.landing-page .section { background: rgba(250, 253, 249, .97); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 0 14px 34px rgba(18, 61, 65, .18); padding: clamp(28px, 5vw, 52px); }
.section-heading { margin-bottom: 28px; max-width: 700px; }
.section-heading h2, .trust-section h2, .contact-section h2 { color: var(--ink) !important; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; margin: 0 0 14px; }
.section-heading > p:last-child { color: #35545a !important; font-size: 1.08rem; }
.service-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.service-card { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 13px; min-height: 208px; padding: 24px; }
.service-card span { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.service-card h3 { font-size: 1.22rem; margin: 18px 0 8px; }
.service-card p { color: var(--muted); margin: 0; }
.trust-section { background: #175f67; border-radius: 18px; color: #eefaf7; display: grid; gap: 50px; grid-template-columns: 1fr 1fr; padding: clamp(32px, 6vw, 62px); }
.landing-page .trust-section h2 { color: #fff !important; }
.trust-copy { font-size: 1.06rem; }
.trust-copy ul { margin: 22px 0 0; padding-left: 20px; }
.trust-copy li { margin: 9px 0; }
.contact-section { background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 38px; grid-template-columns: 1fr .9fr; padding: clamp(32px, 6vw, 60px); }
.contact-section > div > p:last-child { color: var(--muted); font-size: 1.08rem; }
.contact-panel { border-left: 1px solid var(--line); padding-left: 34px; }
.contact-panel p { margin: 0 0 20px; }
.contact-panel strong { color: #a65d19; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.landing-page .site-footer .footer-inner { align-items: center; display: flex; justify-content: space-between; padding-top: 18px; width: 100%; }
.landing-page .site-footer .footer-inner p { margin: 0; }
.developer-credit { font-size: .86rem; margin-top: 8px; opacity: .88; }

@media (max-width: 620px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .brand img { width: 165px; }
  .landing-page .brand { height: 98px; width: 165px; }
  .landing-page .brand-full { width: 165px; }
  .landing-page .site-header.is-compact .header-inner { align-items: center; flex-direction: row; gap: 8px; }
  .landing-page .site-header.is-compact .brand { height: 38px; width: 114px; }
  .landing-page .site-header.is-compact nav { gap: 0; }
  .landing-page .site-header.is-compact nav a { font-size: .78rem; padding: 7px 5px; }
  .landing-page .brand-compact { height: 38px; }
  .landing-page main { padding: 24px 0; }
  .hero, .trust-section, .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero h1 { max-width: none; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .landing-page .site-footer .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page .header-inner, .landing-page .brand, .landing-page .brand-full, .landing-page .brand-compact { transition: none !important; }
}
