/* =========================================================
   LIGHT THEME + PHOTOGRAPHY
   Loaded after styles.css; overrides the original dark surfaces.
   ========================================================= */
:root { --tint: linear-gradient(135deg, #E9EDF0 0%, #E9EDF0 60%, #E9EDF0 100%); --line-strong: #DDE2E6; }

/* Top bar & header */
.topbar { background: #E9EDF0; color: var(--body); border-bottom: 1px solid #DDE2E6; }
.topbar a:hover { color: var(--emerald); }
.site-header, .page-light .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(228, 232, 240, .7); }
.site-header.scrolled, .site-header.solid { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -18px rgba(20, 33, 61, .25); }
.logo { color: var(--ink); }
.logo small { color: var(--emerald); }
.nav-links a.nav-link { color: var(--ink); }
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--emerald); background: #E4EEEE; }
.nav-phone { color: var(--ink); }
.menu-toggle { color: var(--ink); }

/* Buttons */
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); backdrop-filter: none; }
.btn-ghost:hover { background: #fff; border-color: var(--emerald); color: var(--emerald); }

/* Hero */
.hero { background: linear-gradient(180deg, #E9EDF0 0%, #ffffff 100%); color: var(--body); margin-top: 0; padding: 70px 0 130px; }
.hero h1 { color: var(--ink); }
.hero .blob, .page-hero .blob { opacity: .22; filter: blur(90px); }
.grid-overlay { background-image: linear-gradient(rgba(20, 33, 61, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 33, 61, .05) 1px, transparent 1px); }
.hero-badge { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.hero-trust div { color: var(--ink); font-weight: 500; }
.hero-photo { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; transform: scale(1.04); animation: kenburns 18s ease-in-out infinite alternate; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 33, 61, .3)); }
@keyframes kenburns { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-visual .calc-card { position: absolute; left: -70px; bottom: -70px; width: min(350px, 86%); }
.hero-visual .chip-1 { top: 28px; left: -46px; }
.hero-visual .chip-2 { top: 38%; right: -26px; bottom: auto; }
.hero-deco { position: absolute; width: 140px; height: 140px; border-radius: 32px; background: var(--grad); top: -24px; right: -24px; z-index: 0; opacity: .9; transform: rotate(12deg); }
.hero-photo { z-index: 1; }

/* Calculator card (light) */
.glass { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
.calc-card { color: var(--ink); padding: 24px; }
.calc-card h3 { color: var(--ink); }
.calc-card h3 span { background: #E4EEEE; color: #4F8A8B; }
.calc-row { margin: 14px 0; }
.calc-row label { color: var(--body); }
.calc-row label b { color: var(--ink); }
input[type=range] { background: #DDE2E6; }
.calc-result { background: var(--tint); border: 1px solid #DDE2E6; margin-top: 18px; padding: 16px 18px; }
.calc-result small { color: var(--body); }
.calc-result .big { color: var(--ink); font-size: 1.9rem; }
.calc-note { color: var(--muted); }

/* Inner page hero with photo */
.page-hero { margin-top: 0; padding: 110px 0 100px; color: var(--body); background: linear-gradient(180deg, #E9EDF0, #fff); }
/* photo is set inline on each page: style="background-image: linear-gradient(...), url('assets/img/…')" */
.page-hero.has-photo { background-color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; text-align: left; }
.page-hero.has-photo p { margin: 0; max-width: 560px; }
.page-hero.has-photo h1 { max-width: 640px; }
.page-hero h1 { color: var(--ink); }
.crumbs { color: var(--muted); }
.crumbs a:hover { color: var(--emerald); }

/* Why-us photo panel */
.visual-panel { background: #DDE2E6; color: var(--ink); min-height: 540px; padding: 0; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.visual-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-panel .vp-stack { padding: 26px; width: 100%; background: linear-gradient(180deg, transparent, rgba(20, 33, 61, .45)); gap: 12px; }
.vp-item { background: rgba(255, 255, 255, .95); border: 1px solid rgba(255, 255, 255, .7); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(20, 33, 61, .4); padding: 14px 18px; }
.vp-item .vp-ico { color: #fff; }
.vp-item small { color: var(--body); }
.vp-item .tick { color: var(--emerald); }
.reward-card .vp-item { box-shadow: var(--shadow); }

/* Photo cards (calculator teaser etc.) */
.card-photo { margin: -32px -32px 24px; height: 190px; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-photo img { transform: scale(1.07); }
.card-photo + .icon-box { margin-top: -58px; position: relative; background: #fff; box-shadow: var(--shadow); }
.card:hover .card-photo + .icon-box { background: var(--grad); }

/* Service blocks with photos */
.sb-visual { background: #DDE2E6; box-shadow: var(--shadow-lg); min-height: 380px; }
.sb-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.service-block:hover .sb-visual > img { transform: scale(1.05); }
.sb-visual .big-ico { width: 72px; height: 72px; border-radius: 20px; position: absolute; left: 22px; bottom: 22px; animation: none; }
.sb-visual .big-ico svg { width: 34px; height: 34px; }

/* CTA band: bright gradient over suburb photo */
.cta-band { background: linear-gradient(120deg, rgba(79, 138, 139, .93), rgba(79, 138, 139, .9) 60%, rgba(20, 33, 61, .88)), url(../img/suburb-aerial.jpg) center / cover; color: #E9DCC0; box-shadow: 0 30px 60px -25px rgba(79, 138, 139, .55); }
.cta-band .hero-bg { display: none; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: #fff !important; }
.cta-band .eyebrow::before { background: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }
.cta-band .btn-primary:hover { color: var(--emerald); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band b, .cta-band .grad-text { background: none; color: #fff !important; -webkit-text-fill-color: #fff; }

/* Calculator outputs */
.calc-output { background: var(--tint); color: var(--body); border: 1px solid #DDE2E6; }
.calc-output .hero-bg { display: none; }
.calc-output h3 { color: var(--ink); }
.out-rows div { border-bottom-color: #DDE2E6; }
.out-rows b { color: var(--ink); }
.out-disclaimer { color: var(--muted); }
.bar-chart { background: #DDE2E6; }
#repayOut [data-o=freq] { color: var(--body) !important; }
#refiOut small { color: var(--body) !important; -webkit-text-fill-color: var(--body) !important; }

/* Contact / refer side cards */
.info-card, .reward-card { background: var(--tint); color: var(--body); border: 1px solid #DDE2E6; }
.info-card .hero-bg, .reward-card .hero-bg { display: none; }
.info-card h3, .reward-card h3 { color: var(--ink); }
.info-item { border-bottom-color: #DDE2E6; }
.info-item .ii-ico { background: #fff; color: var(--emerald); box-shadow: var(--shadow); }
.info-item small { color: var(--muted); }
.info-item b, .info-item a { color: var(--ink); }
.socials a { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.side-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }

/* About founder card */
.founder-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 540px; box-shadow: var(--shadow-lg); display: flex; align-items: flex-end; }
.founder-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-card .founder-info { position: relative; margin: 20px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.founder-card h3 { margin-bottom: 2px; }
.founder-card .role { color: var(--emerald); font-weight: 600; margin-bottom: 10px; }

/* Footer (light) */
.site-footer { background: #E9EDF0; color: var(--body); border-top: 1px solid var(--line); }
.site-footer h4 { color: var(--ink); }
.site-footer a:hover { color: var(--emerald); }
.subscribe-form { background: #fff; border-color: var(--line-strong); }
.subscribe-form input[type=email] { color: var(--ink); }
.sub-msg { color: #4F8A8B; }
.footer-legal { border-top-color: var(--line); color: var(--muted); }
.footer-legal strong { color: var(--ink) !important; }
.footer-bottom { border-top-color: var(--line); }
.fab .to-top { background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }

.photo-credit { font-size: .72rem; color: var(--muted); }

/* Brand palette lives in palette.css (loaded last). */
.page-hero.has-photo .hero-bg { display: none; }

/* Hero layout tuning: photo stays the star, calculator overlaps its lower edge */
.hero { padding-bottom: 230px; }
@media (min-width: 961px) { .hero .container { grid-template-columns: 1.05fr .95fr; } }
.hero-photo { aspect-ratio: 4 / 4.3; }
.hero-visual .calc-card { left: -36px; bottom: -180px; width: min(330px, 84%); padding: 20px 22px; }
.hero-visual .calc-card .calc-note { display: none; }
.hero-visual .calc-card h3 { font-size: 1.02rem; margin-bottom: .2em; }
.hero-visual .calc-row { margin: 10px 0; }
.hero-visual .calc-row label { margin-bottom: 6px; }
@media (max-width: 960px) {
  .hero { padding-bottom: 100px; }
  .hero-visual .calc-card { left: auto; bottom: auto; width: auto; margin: -70px 16px 0; }
}
.page-hero.has-photo .crumbs { font-weight: 600; }

@media (max-width: 960px) {
  .site-header .nav { position: relative; }
  .nav-links { background: #fff; position: absolute; inset: 100% -20px auto -20px; box-shadow: 0 20px 40px -10px rgba(20, 33, 61, .2); z-index: 5; }
  .dropdown { background: var(--bg-soft); }
  .dropdown a { color: var(--ink); }
  .dropdown a:hover { background: #fff; }
  .hero { padding: 40px 0 100px; }
  .hero-visual .calc-card { position: relative; left: auto; bottom: auto; width: auto; margin: -70px 16px 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-visual .chip-1 { left: -6px; top: 16px; }
  .hero-visual .chip-2 { right: -6px; top: 30%; }
  .page-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .72); }
  .visual-panel, .founder-card { min-height: 460px; }
  .sb-visual { min-height: 260px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 64px 0 56px; }
  .hero-deco { display: none; }
  .hero-visual .chip-2 { display: none; }
  .nav-links { inset: 100% -16px auto -16px; }
}
