/* CeruO Realty custom theme */

/* Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4faff; /* light cerulean background */
  color: #222;
  line-height: 1.6;
}

/* Navbar */
header {
  background: #004c70; /* deep cerulean */
  padding: 10px 20px;
}
header nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
header nav a.active {
  border-bottom: 2px solid #ffd700; /* gold underline */
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #004c70, #0077b6);
  color: #fff;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero .cta {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: #ffd700;
  color: #004c70;
  border-radius: 4px;
  font-weight: bold;
}

/* Section titles */
section h1, section h2 {
  text-align: center;
  margin: 40px 0 20px;
  color: #004c70;
}

/* Properties */
.properties article {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* FAQ */
.faq .faq-item {
  background: #fff;
  margin: 10px auto;
  padding: 15px;
  max-width: 700px;
  border-left: 4px solid #0077b6;
}

/* Footer */
footer {
  background: #004c70;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ------- CeruO layout & contrast fixes (append) ------- */

/* page container */
body, html {
  box-sizing: border-box;
}

/* center page content, add side padding */
.main {
  max-width: 1200px;    /* content width */
  margin: 0 auto;
  padding: 24px;        /* gap from viewport edges */
}

/* global readable text color (improves grey legibility) */
body, p, li, input, textarea {
  color: #15303b; /* darker slate for readability */
  font-size: 16px;
}

/* header adjustments so logo stands out */
.header {
  background: linear-gradient(90deg, #073247 0%, #0b556f 100%); /* darker gradient */
  padding: 12px 0;
}
.header-logo { height: 40px; width:auto; display:inline-block; margin-left: 18px; }

/* hero improvements */
.section.hero {
  padding: 60px 20px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(6,38,60,0.95) 0%, rgba(7,103,150,0.95) 100%);
  box-shadow: 0 12px 32px rgba(6,30,60,0.08);
}
.primary-heading { color: #e9f7ff; font-weight:700; font-size:34px; }
.hero-description { color: rgba(237,250,255,0.92); font-size:16px; max-width:760px; margin: 12px auto 0; }

/* CTA contrast */
.btn-properties { background: #ffd166; color:#053049; border: none; }
.btn-contact { color:#ffd166; border-color: rgba(255,209,102,0.16); }

/* add breathing room around sections */
.section { padding: 28px 0; }

/* Properties: grid layout, spacing, consistent image sizing */
.properties-set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.properties-card {
  background:#fff;
  border-radius:10px;
  padding:14px;
  box-shadow:0 6px 18px rgba(6,30,60,0.04);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.properties-img {
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:8px;
  background: #e6f1f9; /* visible background for missing images */
  display:block;
}

/* ensure text columns have margins and don't touch viewport */
.properties-container{ padding:6px 2px 12px 2px; }

/* property stats icons */
.properties-card-container {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:#516b73;
}
.properties-card-logo, .about-logo, ion-icon {
  font-size:18px; /* make icons readable */
  vertical-align:middle;
  color:#10708f;
}

/* FAQ styling — increase contrast */
.faq .faq-item { border-left: 4px solid #0b74de; background: #fff; padding:14px; margin:10px auto; max-width:900px; color:#1b414b; }

/* small-screen adjustments */
@media (max-width:900px) {
  .header-logo { margin-left:10px; height:34px; }
  .hero { padding:44px 14px; }
  .hero-description { padding:0 6px; }
  .properties-img { height:180px; }
  .main { padding:18px; }
}

/* fallback trick: if image can't load, set a neutral background-size text using CSS isn't possible,
   so we will recommend adding onerror fallback on <img> tags (see below) */

/* ===== Header: larger logo, tagline, nav pipes, header layout ===== */
.header {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, rgba(6,38,60,0.92), rgba(6,38,60,0.88));
  box-shadow: 0 2px 8px rgba(6,30,60,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  justify-content: space-between;
}

/* left block with logo + optional subline */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO sizing — bigger for desktop, responsive for mobile */
.header-logo {
  height: 62px;            /* larger logo — change to 72px if you want even bigger */
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Optional subline displayed next to logo (small, lighter weight) */
.site-subline {
  color: rgba(255,255,255,0.95);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  margin-left: 6px;
  line-height: 1;
  white-space: nowrap;
}

/* primary nav in center/right */
.nav {
  display: flex;
  gap: 0;
  align-items: center;
  margin-left: 12px;
}

/* add pipe before every nav item except first */
.nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
}
.nav a + a::before {
  content: "|";
  color: rgba(255,255,255,0.25);
  padding: 0 12px;
  font-weight: 600;
  display: inline-block;
}

/* right area with phone and CTA */
.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact-link {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight:600;
  font-size:13px;
  margin-right:6px;
}
.btn-cta {
  background: #ffd166; /* warm accent */
  color: #053049;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight:700;
  box-shadow: 0 6px 16px rgba(6,30,60,0.08);
}

/* responsive: shrink logo & layout on narrow screens */
@media (max-width: 880px) {
  .header-inner { padding: 10px 12px; }
  .header-logo { height: 48px; }
  .site-subline { display: none; } /* keep SVG tagline on small screens */
  .nav a { padding: 6px 8px; font-size:13px; }
  .nav a + a::before { padding: 0 8px; }
  .btn-cta { padding: 6px 10px; font-size:13px; }
}

/* ===== Hero overlay: make overlay lighter so background is more visible ===== */
/* Use this rule if hero background is set via CSS. If you have inline style in index.html,
   replace the inline gradient alpha with similar values below. */
.section.hero {
  background-image:
    linear-gradient(180deg, rgba(6,38,60,0.62), rgba(7,103,150,0.50)),
    url('/images/ceruo-hero-skyline-21x9.webp');
  background-size: cover;
  background-position: center center;
  color: #fff;
  /* text shadow for contrast */
  text-shadow: 0 6px 18px rgba(6,30,60,0.35);
}

/* slightly increase hero text contrast */
.primary-heading { color: #fff; font-size: 36px; }
.hero-description { color: rgba(255,255,255,0.92); max-width:760px; }

/* make CTAs pop on hero */
.btn-properties, .btn-cta {
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn-properties:hover, .btn-cta:hover { transform: translateY(-3px); }

/* small-screen tweaks for hero text */
@media (max-width:700px) {
  .primary-heading { font-size:28px; }
  .hero-description { font-size:15px; padding: 0 12px; }
}

