/* CortoCasa marketing site — Mediterranean daylight */
:root {
  --bg: #ffffff;
  --ink: #0b2545;
  --ink-soft: #3b5273;
  --muted: #6b7a90;
  --accent: #e8c547;
  --accent-ink: #6b5410;
  --brand: #134074;
  --brand-2: #1b5eab;
  --line: #e6ecf3;
  --card: #f7fafd;
  --radius: 14px;
  --max: 1120px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
small { color: var(--muted); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 800; font-size: 15px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600;
}
.nav .cta:hover { background: var(--brand); }
@media (max-width: 720px) {
  .nav .link { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #f2d15c; text-decoration: none; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232, 197, 71, .18), transparent 60%),
    radial-gradient(900px 500px at 5% 10%, rgba(19, 64, 116, .10), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: rgba(19,64,116,.08); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { margin-top: 20px; max-width: 20ch; }
.hero .lede { max-width: 62ch; font-size: 1.18rem; color: var(--ink-soft); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .trust { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section.plain { border-bottom: none; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 8px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand); font-weight: 800;
}

/* Split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split ul { padding-left: 20px; margin: 0; }
.split li { margin-bottom: 10px; color: var(--ink-soft); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: 0 20px 40px -24px rgba(11,37,69,.25); position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: var(--accent-ink);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.plan h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; }
.price { font-family: var(--font-serif); font-size: 3rem; color: var(--ink); margin: 12px 0 4px; }
.price small { font-family: var(--font-sans); font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.plan li:first-child { border-top: 0; }
.plan .btn { justify-content: center; margin-top: auto; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line); padding: 22px 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 14px; margin-bottom: 0; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare th { background: var(--card); font-weight: 600; color: var(--ink); }
.compare td:first-child { color: var(--ink); font-weight: 500; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #0b2545 100%);
  color: #fff; text-align: center; padding: 72px 24px; border-radius: 20px; margin: 40px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 55ch; margin: 0 auto 24px; }
.cta-band .btn-accent { color: var(--accent-ink); }

/* Blog */
.post-meta { color: var(--muted); font-size: 14px; }
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .post-list { grid-template-columns: 1fr; } }
.post-card { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.post-card h3 { margin: 8px 0 6px; }
.post-card p { margin: 0; font-size: 15px; }
article.post { max-width: 68ch; margin: 0 auto; }
article.post h1 { margin-bottom: 12px; }
article.post h2 { margin-top: 2em; }
article.post p, article.post li { font-size: 1.05rem; }
article.post ul, article.post ol { padding-left: 20px; }
article.post li { margin-bottom: 8px; }

/* Footer */
.site-footer {
  padding: 56px 0 40px; background: #0b2545; color: rgba(255,255,255,.75);
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14.5px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.55); }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.tight { max-width: 62ch; margin-left: auto; margin-right: auto; }
