/* =========================
   SEELOS WATER - SITE STYLES
========================= */

:root {
  --background: #fbfcfd;
  --surface: #ffffff;
  --soft-background: #f4f7f8;
  --soft-blue: #edf6f8;
  --heading: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --accent: #2f6f7e;
  --accent-dark: #245968;
  --accent-light: #d8eaee;
  --border: #d8e3e8;
  --border-light: #e8eef2;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.065);
  --shadow-subtle: 0 6px 18px rgba(15, 23, 42, 0.045);
  --radius: 16px;
  --radius-large: 26px;
  --content-width: 1060px;
}

/* =========================
   GLOBAL RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 126, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--background) 42%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.05rem, 3.8vw, 3rem);
  font-weight: 820;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 780;
}

h3 {
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  font-weight: 760;
}

h4 {
  font-size: 1rem;
  font-weight: 740;
}

p {
  margin: 0 0 1.1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

.lead {
  color: var(--text);
  font-size: clamp(1.02rem, 1.45vw, 1.14rem);
  line-height: 1.72;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 227, 232, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 30px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo a:hover {
  color: var(--accent-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: #334155;
  font-size: 0.94rem;
  font-weight: 620;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  color: var(--accent-dark);
  background: var(--soft-blue);
}

/* Compatibility with alternate header class names */
.nav-wrap,
.site-nav,
header nav {
  max-width: var(--content-width);
  margin: 0 auto;
}

.site-nav,
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   MAIN LAYOUT
========================= */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 70px 30px 96px;
}

section {
  width: 100%;
}

/* =========================
   SHARED PAGE TITLE BLOCKS
========================= */

.page-title-block,
.services-title-block,
.projects-title-block,
.about-title-block {
  max-width: 840px;
  margin-bottom: 44px;
}

.page-title-block h1,
.services-title-block h1,
.projects-title-block h1,
.about-title-block h1,
.contact-card h1,
.contact-content h1 {
  font-size: clamp(1.95rem, 3.1vw, 2.65rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-title-block .lead,
.services-title-block .lead,
.projects-title-block .lead,
.about-title-block .lead {
  max-width: 760px;
}

/* =========================
   HOME PAGE
========================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 230px);
  padding: 8px 0 48px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 470px;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-text,
.hero-content {
  max-width: 690px;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.7rem, 5.4vw, 4.55rem);
  margin-bottom: 20px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(47, 111, 126, 0.2));
}

.tagline {
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero-lead {
  margin-bottom: 18px;
  color: var(--heading);
  font-size: clamp(1.24rem, 2.1vw, 1.58rem);
  line-height: 1.44;
  letter-spacing: -0.018em;
}

.hero-text p:not(.tagline):not(.hero-lead),
.hero-content p:not(.tagline):not(.hero-lead) {
  max-width: 620px;
  color: var(--text);
  font-size: 1.04rem;
}

/* Optional if you kept a single homepage CTA */
.hero-cta {
  margin-top: 24px;
  margin-bottom: 0;
}

.hero-cta a {
  color: var(--accent);
  font-weight: 760;
}

.hero-cta a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Legacy homepage card support */
.hero-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  padding: 34px;
}

.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.hero-card ul {
  padding-left: 1.1rem;
}

/* Legacy homepage grid support */
.home-section {
  margin-top: 64px;
}

.home-section h2 {
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.feature-box h3 {
  margin-bottom: 12px;
}

/* =========================
   ABOUT PAGE
========================= */

.about-page {
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.about-section,
.about-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.about-section h2,
.about-box h2 {
  margin-bottom: 16px;
}

.about-section h3,
.about-box h3 {
  margin: 22px 0 10px;
}

/* About intro/profile layouts */
.about-intro,
.about-hero,
.about-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 38px;
  align-items: start;
}

/* Headshot */
.about-headshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-soft);
}

/* Legacy image classes */
.about-photo,
.about-image,
.profile-photo {
  max-width: 260px;
  width: 100%;
  margin: 0 auto 24px;
}

.about-photo img,
.about-image img,
.profile-photo img,
img.about-photo,
img.profile-photo {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 22px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

/* =========================
   SERVICES PAGE
========================= */

.services-page {
  width: 100%;
}

.services-intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.services-intro h2 {
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  margin-bottom: 12px;
}

.services-icon-row {
  max-width: 760px;
  margin: 0.5rem auto 1rem auto;
  padding: 0 1rem;
  text-align: left;
}

.services-icon-row img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 8px;
}




.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.service-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.service-box h3 {
  margin-bottom: 13px;
}

.service-box p {
  color: var(--text);
  margin-bottom: 16px;
}

.service-box ul {
  color: var(--text);
}

.engagement-box {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: start;
  margin-top: 44px;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(237, 246, 248, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-subtle);
}

.engagement-box h2 {
  font-size: clamp(1.32rem, 2vw, 1.75rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 680;
}

/* =========================
   PROJECTS PAGE
========================= */

.projects-page {
  width: 100%;
}

.projects-section {
  margin-top: 36px;
}

.project-feature {
  background:
    linear-gradient(135deg, rgba(237, 246, 248, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.project-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-feature h3 {
  margin-bottom: 13px;
}

.project-feature p {
  max-width: 820px;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.project-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 29px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.project-box h3 {
  margin-bottom: 12px;
}

.project-box p {
  margin-bottom: 0;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.contact-location {  
  margin: -0.5rem 0 1.5rem 0;  
  color: #64748b;  
  font-size: 0.95rem;  
}  

.contact-card,
.contact-content {
  width: 100%;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.contact-card h1,
.contact-content h1 {
  margin-bottom: 20px;
}

.contact-card .lead,
.contact-content .lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--text);
}

/* Force the form to render as a clean vertical form */
.contact-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.form-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  width: 100% !important;
}

.form-field label {
  display: block !important;
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.3;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background-color: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 126, 0.12);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 760;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.form-honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* =========================
   FOOTER
========================= */

.site-footer,
footer {
  border-top: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
}

.footer-wrap,
footer > div {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 30px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  main {
    padding: 56px 24px 82px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 48px;
  }

  .hero-image {
    max-height: 360px;
  }

  .feature-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .engagement-box {
    grid-template-columns: 1fr;
  }

  .page-title-block,
  .services-title-block,
  .projects-title-block,
  .about-title-block {
    margin-bottom: 36px;
  }

  .about-intro,
  .about-hero,
  .about-profile {
    grid-template-columns: 1fr;
  }

  .about-headshot {
    width: 200px;
    height: 200px;
  }

  .about-photo,
  .about-image,
  .profile-photo,
  .about-photo img,
  .about-image img,
  .profile-photo img,
  img.about-photo,
  img.profile-photo,
  .about-page img,
  .about-title-block img,
  .about-intro img,
  .about-hero img,
  .about-profile img {
    max-width: 240px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a {
    padding: 6px 9px;
  }

  main {
    padding: 44px 20px 72px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .page-title-block h1,
  .services-title-block h1,
  .projects-title-block h1,
  .about-title-block h1,
  .contact-card h1,
  .contact-content h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.25rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero-lead {
    font-size: 1.14rem;
  }

  .tagline {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .service-box,
  .project-box,
  .project-feature,
  .about-section,
  .about-box,
  .hero-card,
  .engagement-box,
  .contact-card,
  .contact-content {
    padding: 24px;
  }

  .about-photo,
  .about-image,
  .profile-photo,
  .about-photo img,
  .about-image img,
  .profile-photo img,
  img.about-photo,
  img.profile-photo,
  .about-page img,
  .about-title-block img,
  .about-intro img,
  .about-hero img,
  .about-profile img {
    max-width: 220px;
  }

  .about-headshot {
    width: 180px;
    height: 180px;
  }

  .contact-form button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner,
  .nav-wrap,
  .site-nav,
  header nav,
  .footer-wrap,
  footer > div {
    padding-left: 18px;
    padding-right: 18px;
  }

  .service-box,
  .project-box,
  .project-feature,
  .about-section,
  .about-box,
  .hero-card,
  .engagement-box,
  .contact-card,
  .contact-content {
    padding: 20px;
  }

  .about-photo,
  .about-image,
  .profile-photo,
  .about-photo img,
  .about-image img,
  .profile-photo img,
  img.about-photo,
  img.profile-photo,
  .about-page img,
  .about-title-block img,
  .about-intro img,
  .about-hero img,
  .about-profile img {
    max-width: 200px;
  }
}

/* FINAL OVERRIDE - ABOUT HEADSHOT */
img.about-headshot {
  width: 220px !important;
  height: 220px !important;
  max-width: 220px !important;
  object-fit: cover !important;
  border-radius: 22px;
  display: block;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-soft);
}
