/* Casa Bela Homes — site styles */
:root {
  --blue: #0080c8;        /* logo blue, accents */
  --blue-dark: #0067a3;   /* buttons and links (readable on white) */
  --navy: #0f2a3d;        /* footer, dark bands */
  --ink: #1d2730;         /* body text */
  --muted: #55616b;
  --line: #dde5ec;
  --pale: #f2f7fb;        /* light blue-gray band */
  --white: #ffffff;
  --radius: 10px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.65 "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* Top contact strip */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 3px solid var(--blue); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .house { width: 76px; mix-blend-mode: multiply; }
.brand .word { width: 300px; }
.brand .llc {
  font: 400 25px/1 "Cinzel", Georgia, serif; color: #0078bd;
  margin-left: -8px; align-self: center; padding-top: 4px; white-space: nowrap;
}

/* Logo at the bottom of the Contact page */
.logo-band { padding: 10px 0 50px; text-align: center; }
.logo-band img { width: 100%; max-width: 460px; margin: 0 auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 600;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--pale); }
.nav a[aria-current="page"] { color: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.nav .btn { margin-left: 10px; }

.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--blue-dark); color: #fff !important;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--blue-dark);
  line-height: 1.2;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--blue-dark) !important; }
.btn.ghost:hover { background: var(--pale); color: var(--navy) !important; border-color: var(--navy); }
.btn.light { background: #fff; color: var(--navy) !important; border-color: #fff; }
.btn.light:hover { background: var(--pale); border-color: var(--pale); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { text-align: center; padding: 46px 0 30px; background: linear-gradient(#fff, var(--pale)); }
.hero .sketch { width: 100%; max-width: 940px; margin: 0 auto 10px; mix-blend-mode: multiply; }
.badge {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 auto 26px; }
.hero .btn-row { justify-content: center; }

/* Page title band (inner pages) */
.page-title { background: var(--pale); border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.page-title p { color: var(--muted); font-size: 1.15rem; max-width: 760px; margin: 0; }

/* Sections */
section { padding: 56px 0; }
.alt { background: var(--pale); }
.center { text-align: center; }
.intro { max-width: 760px; margin: 0 auto 30px; color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 22px 22px 18px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Contact blocks */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.contact-box .label { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); font-weight: 700; }
.contact-box .value { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 6px 0 14px; word-break: break-word; }
.contact-box .value a { color: var(--navy); text-decoration: none; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 28px; scroll-margin-top: 110px;
}
.form-note { color: var(--muted); font-size: .95rem; }
.req { color: #b42318; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--navy); margin-bottom: 5px; font-size: 1rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #b9c7d3; border-radius: 8px; padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,128,200,.25); border-color: var(--blue); }
.field .invalid { border-color: #b42318; background: #fff8f7; }
.err { color: #b42318; font-size: .9rem; margin-top: 4px; }
.hp { display: none; }
.contact-form button { cursor: pointer; font-size: 1.05rem; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: #1a7f37; }
.form-status.error { color: #b42318; }

/* Call band */
.call-band { background: var(--blue-dark); color: #fff; text-align: center; padding: 44px 0; }
.call-band h2 { color: #fff; }
.call-band p { font-size: 1.15rem; margin-bottom: 20px; }
.call-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: #d6e2ec; padding: 44px 0 90px; font-size: 1rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.site-footer img { width: 280px; margin-bottom: 12px; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 18px; font-size: .9rem; color: #a9bccb; }

/* Round floating call button (phones and tablets) */
.float-call { display: none; }
@keyframes ring { 0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 0 rgba(0,128,200,.55); }
                  50% { box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 12px rgba(0,128,200,0); } }


/* Tablets and phones */
@media (max-width: 900px) {
  .brand .word { width: 230px; }
  .brand .house { width: 62px; }
  .brand .llc { font-size: 19px; margin-left: -6px; padding-top: 3px; }
  .menu-toggle {
    display: inline-block; background: none; border: 2px solid var(--navy); color: var(--navy);
    font: 700 1rem "Source Sans 3", Arial, sans-serif; padding: 8px 14px; border-radius: 6px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 18px;
    border-bottom: 3px solid var(--blue); box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-radius: 999px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .float-call {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: 18px; z-index: 60;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--blue-dark); color: #fff; text-decoration: none;
    font-weight: 700; font-size: .8rem; line-height: 1;
    animation: ring 2.4s ease-in-out infinite;
  }
  .float-call span { margin-top: 2px; }
  .float-call:hover, .float-call:focus { color: #fff; background: var(--navy); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar { display: none; }
  .brand { gap: 8px; }
  .brand .word { width: 150px; }
  .brand .house { width: 44px; }
  .brand .llc { font-size: 13px; margin-left: -4px; padding-top: 2px; }
  section { padding: 42px 0; }
  .hero { padding-top: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
}
