@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');:root{--navy:#153653;--blue:#4ac5ed;--pale:#e9f8ff;--red:#ed2632;--ink:#263443;--muted:#697987;--line:#e4eaf0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:white;font:16px/1.6 'DM Sans',sans-serif}h1,h2,h3,strong{font-family:Manrope,sans-serif}h1,h2,h3,p{margin-top:0}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}.top{height:88px;display:flex;align-items:center;gap:38px;justify-content:space-between;padding:0 max(5vw,24px);background:white;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font:800 15px/1.2 Manrope;color:var(--navy);letter-spacing:.045em}.brand img{width:48px;height:48px;object-fit:cover;border-radius:7px}.brand small{display:block;font-size:11px;letter-spacing:.22em;margin-top:4px}.top nav{display:flex;gap:30px;font-size:14px;font-weight:700}.top nav a:hover,.text-link:hover{color:var(--red)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:14px 22px;border-radius:7px;font-weight:700;font-size:14px;border:1px solid transparent;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn-red{background:var(--red);color:white}.btn-outline{border-color:#b8cbd8;color:var(--navy);background:white}.menu{display:none;background:none;border:0;font-size:26px}.hero{display:grid;grid-template-columns:1.05fr .95fr;min-height:610px}.hero-copy{padding:105px 7vw 75px max(5vw,24px);background:linear-gradient(140deg,#fff 70%,#f1fbff)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.17em;color:#138dbd;display:block;margin-bottom:22px}.hero h1{font-size:clamp(39px,4.1vw,67px);letter-spacing:-.055em;line-height:1.12;color:var(--navy);margin-bottom:26px}.hero h1 em,h2 em{font-style:normal;color:#1aa8d5}.hero-copy>p{max-width:530px;color:var(--muted);font-size:17px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:34px 0}.hero-note{font-size:12px;color:var(--muted);font-weight:600}.dot{display:inline-block;width:8px;height:8px;background:#29ba91;border-radius:50%;margin-right:7px}.hero-visual{position:relative;overflow:hidden;min-height:490px;background:#dce8ed}.hero-visual img{width:100%;height:100%;position:absolute;object-fit:cover}.section{padding:95px max(5vw,24px)}.section-head{display:flex;justify-content:space-between;gap:45px;align-items:end;margin-bottom:35px}.section-head h2,.about h2,.contact h2{font-size:clamp(30px,3vw,46px);letter-spacing:-.045em;line-height:1.2;color:var(--navy);margin:0;max-width:650px}.section-head p{max-width:360px;color:var(--muted);margin:0}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.service-card{border:1px solid var(--line);border-radius:12px;padding:27px 24px;min-height:220px;background:white}.service-card .number{color:#25b7e4;font-size:12px;font-weight:800}.service-card h3{color:var(--navy);font-size:18px;margin:22px 0 10px}.service-card p{font-size:14px;color:var(--muted)}.project-section{background:#f6fafc}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}.filter{background:white;border:1px solid #dce8ef;border-radius:50px;padding:9px 18px;color:var(--navy);font-size:13px;font-weight:700}.filter.active{background:var(--navy);color:white}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.gallery-card{padding:0;background:white;border:1px solid #e5edf2;border-radius:12px;overflow:hidden;text-align:left}.gallery-card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;transition:transform .3s}.gallery-card:hover img{transform:scale(1.04)}.gallery-card .caption{display:block;padding:14px 16px;font-weight:700;color:var(--navy);font-size:13px}.gallery-card small{display:block;font-size:11px;color:var(--muted);font-weight:400}.gallery-foot{font-size:13px;color:var(--muted);margin-top:25px;text-align:center}.about{display:grid;grid-template-columns:1fr 1fr;gap:70px;background:linear-gradient(110deg,#e9f8ff,white)}.about p{font-size:17px;color:#526778}.text-link{color:var(--navy);font-weight:800}.contact{background:var(--navy);color:white;display:flex;justify-content:space-between;align-items:center;gap:40px;padding:75px max(5vw,24px)}.contact h2{color:white}.contact p{color:#c4d9e7}.contact .eyebrow{color:#78d8f6}.contact-actions{display:flex;gap:12px;flex-wrap:wrap}.contact .btn-outline{background:transparent;color:white;border-color:#7290a8}footer{padding:26px max(5vw,24px);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--muted)}dialog{border:0;border-radius:12px;padding:15px;max-width:min(90vw,850px);box-shadow:0 20px 100px #0018}dialog::backdrop{background:#061929d9}dialog img{max-width:100%;max-height:75vh;display:block;margin:auto}dialog p{text-align:center;margin:10px}#close-lightbox{position:absolute;right:15px;top:15px;border:0;background:white;border-radius:50%;padding:8px 12px}@media(max-width:900px){.top nav{display:none}.top nav.open{display:flex;position:absolute;top:88px;left:0;right:0;flex-direction:column;padding:24px;background:white;border-bottom:1px solid var(--line)}.menu{display:block}.top>.btn{display:none}.hero{grid-template-columns:1fr}.hero-copy{padding:65px 24px}.hero-visual{min-height:440px}.service-grid,.gallery{grid-template-columns:repeat(2,1fr)}.section-head,.contact{align-items:start;flex-direction:column}.about{grid-template-columns:1fr;gap:22px}}@media(max-width:550px){.section{padding:60px 20px}.service-grid,.gallery{grid-template-columns:1fr 1fr;gap:9px}.service-card{padding:18px;min-height:230px}.gallery-card .caption{padding:9px;font-size:11px}.hero h1{font-size:40px}.brand{font-size:12px}.brand img{width:42px;height:42px}.contact{padding:60px 20px}.contact-actions{width:100%}}
.top nav{font-size:17px;gap:27px}.page-hero{padding:76px max(5vw,24px) 50px;background:linear-gradient(120deg,#f1faff,#fff)}.page-hero h1{font-size:clamp(36px,4vw,60px);line-height:1.13;color:var(--navy);max-width:850px}.page-hero p{max-width:700px;color:var(--muted);font-size:18px}.feature-strip{padding:65px max(5vw,24px)}.feature-strip h2{color:var(--navy)}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.featured-grid a{display:block;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:white}.featured-grid img{width:100%;height:260px;object-fit:cover;display:block}.featured-grid span{display:block;padding:15px;font-weight:700;color:var(--navy)}.service-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:30px}.service-photo-grid article{border:1px solid var(--line);border-radius:12px;overflow:hidden}.service-photo-grid img{width:100%;height:260px;object-fit:cover}.service-photo-grid article div{padding:22px}.service-photo-grid h3{color:var(--navy)}.contact-details{padding:55px max(5vw,24px);max-width:900px}.contact-details a{color:#087eaa;text-decoration:underline}@media(max-width:750px){.featured-grid,.service-photo-grid{grid-template-columns:1fr}.featured-grid img{height:240px}.top nav{font-size:16px}.page-hero{padding-top:45px}}
/* V3: owner-adjustable typography and uncropped service photos */
body{font-size:var(--font-body,16px)}.top nav{font-size:var(--font-nav,17px)}.btn{font-size:var(--font-buttons,14px)}.page-hero h1{font-size:clamp(32px,calc(4vw * var(--font-heading-scale,1)),78px)}.hero h1{font-size:clamp(35px,calc(4.1vw * var(--font-heading-scale,1)),84px)}.section-head h2,.about h2,.contact h2{font-size:clamp(27px,calc(3vw * var(--font-heading-scale,1)),60px)}.service-photo-grid img{object-fit:contain;background:#f1f5f8;display:block}.design-preview{padding:22px;border:1px solid #dce8ef;border-radius:12px;background:#f6fbff}.design-preview .preview-nav{font-weight:700;color:var(--navy);margin-bottom:15px}.design-preview h2{color:var(--navy)}

/* Owner-controlled company name sizes */
.brand{font-size:var(--font-brand-main,15px)}
.brand small{font-size:var(--font-brand-sub,11px)}

/* V4.3 company name and tagline */
.brand .brand-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}.brand .brand-name{font-size:var(--font-brand-main,15px)}.brand .brand-tagline{font-size:var(--font-brand-sub,11px);font-weight:500;letter-spacing:.03em;margin-top:3px}

/* Version 5 text editor */
.text-page-editor{padding:16px 0;border-top:1px solid #d8e3ed}.text-edit-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(130px,1fr);gap:14px;align-items:end;margin:12px 0}.text-edit-row label{min-width:0}.text-edit-row textarea{min-height:65px;width:100%}@media(max-width:650px){.text-edit-row{grid-template-columns:1fr}}

/* v6.2: prevent placeholder branding and text from flashing before Supabase content loads. */
html.cps-content-loading body { visibility: hidden; }
html.cps-content-loading::after {
  content: ""; position: fixed; z-index: 99999; left: 50%; top: 50%;
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 3px solid rgba(100, 116, 139, .22);
  border-top-color: #64748b; border-radius: 50%;
  animation: cps-loading-spin .8s linear infinite;
}
@keyframes cps-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.cps-content-loading::after { animation: none; } }
/* v6.9: make rich-text bold visually distinct in the company name. */
.brand .brand-name{font-weight:500}
.brand .brand-name b,.brand .brand-name strong{font-weight:800}

/* v7.0: consistent rich-text emphasis on every editable public text field.
   Lower the baseline only when the field contains explicit bold markup, so
   the bold action remains visible even on normally bold headings and links. */
[data-cps-edit].cps-rich-has-bold,
.brand-name.cps-rich-has-bold,.brand-tagline.cps-rich-has-bold,
#hero-eyebrow.cps-rich-has-bold,#hero-heading-main.cps-rich-has-bold,
#hero-heading-accent.cps-rich-has-bold,#hero-description.cps-rich-has-bold,
#about-text.cps-rich-has-bold{font-weight:500}
[data-cps-edit] b,[data-cps-edit] strong,
.brand-name b,.brand-name strong,.brand-tagline b,.brand-tagline strong,
#hero-eyebrow b,#hero-eyebrow strong,#hero-heading-main b,#hero-heading-main strong,
#hero-heading-accent b,#hero-heading-accent strong,#hero-description b,#hero-description strong,
#about-text b,#about-text strong{font-weight:800}
[data-cps-edit] i,[data-cps-edit] em,
.brand-name i,.brand-name em,.brand-tagline i,.brand-tagline em,
#hero-eyebrow i,#hero-eyebrow em,#hero-heading-main i,#hero-heading-main em,
#hero-heading-accent i,#hero-heading-accent em,#hero-description i,#hero-description em,
#about-text i,#about-text em{font-style:italic}
[data-cps-edit] u,.brand-name u,.brand-tagline u,
#hero-eyebrow u,#hero-heading-main u,#hero-heading-accent u,
#hero-description u,#about-text u{text-decoration:underline}

/* v7.1: Font selections are applied directly to editable text containers. */
[data-cps-edit] b,[data-cps-edit] strong,.rich-area b,.rich-area strong,.brand-name b,.brand-name strong{font-family:inherit}

/* About page: image on the right of the introductory section */
.about-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);align-items:center;gap:45px}.about-hero img{width:100%;height:320px;object-fit:cover;border-radius:12px}.about-hero h1{max-width:100%}@media(max-width:750px){.about-hero{grid-template-columns:1fr}.about-hero img{height:250px}}

/* v7.4: match spacing between the About Us section headings and their images. */
.about #about-bottom-image { display:block; margin-top:26px; }

.hero-visual[hidden]{display:none!important}

/* v9.3: extend the hero photo into letterbox space with a softly blurred copy.
   The foreground image still respects the dashboard's contain/cover setting. */
.hero-visual{isolation:isolate;}
.hero-visual .hero-image-backdrop{position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover!important;object-position:center;filter:blur(22px) brightness(.78) saturate(.85);z-index:0;pointer-events:none;}
.hero-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(21,54,83,.12),rgba(21,54,83,.04));z-index:0;pointer-events:none;}
.hero-visual #hero-photo{z-index:1;}
.hero-visual .hero-image-backdrop[hidden]{display:none!important;}
