/* King Tide Solutions – Final Production Styles (Cleaned) */

/* =====================
   Variables
===================== */
:root{
  --bg: #dedcd3;
  --bg-muted: #d6d4cb;
  --ink: #141414;
  --ink-muted: #3a3a3a;
  --brand: #0f2747;
  --brand-2: #123a66;
  --line: rgba(0,0,0,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --radius: 16px;
  --maxw: 1440px;
}

/* =====================
   Base
===================== */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

img{
  max-width: 100%;
  display: block;
}

/* =====================
   Typography
===================== */
h1, h2, h3{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: .2px;
  line-height: 1.15;
  margin: 0 0 .75rem;
}

h1{ font-size: clamp(2rem, 4vw, 3rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3{ font-size: 1.2rem; }

p{
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

strong{ color: var(--ink); }

a{
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover{ color: var(--brand-2); }

/* =====================
   Layout
===================== */
.container{
  width: min(var(--maxw), calc(100% - 1.5rem));
  margin: 0 auto;
}

.narrow{
  width: min(760px, calc(100% - 2.5rem));
}

/* =====================
   Accessibility
===================== */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{
  left: 1rem;
  top: 1rem;
}

/* =====================
   Header (Brand-only, Transparent)
===================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: none;
}

.header-inner{
  display: flex;
  align-items: center;
  padding: .75rem 0;
}

.brand-home{
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .2px;
  color: var(--ink);
}

.brand-home:hover{
  color: var(--brand);
}

/* =====================
   Hero
===================== */
.hero{
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10,15,20,.7),
      rgba(10,15,20,.35) 45%,
      rgba(222,220,211,1) 100%
    ),
    url("../assets/polis.jpg") center / cover no-repeat;
}

.hero-content{
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 3rem;
}

/* Brand text above headline */
.hero-brand{
  position: absolute;
  top: -2.5rem;
  left: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .3px;
  color: rgba(255,255,255,.95);
}

.hero h1,
.hero .subhead{
  transform: translateY(-4.5rem);
}

.hero h1{
  color: #fff;
  margin-bottom: .9rem;
}

.subhead{
  color: rgba(255,255,255,.9);
  max-width: 60ch;
  margin-bottom: 1.6rem;
}

/* =====================
   Sections
===================== */
.section{
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-muted{
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* =====================
   Split Layout
===================== */
.split{
  display: grid;
  grid-template-columns: 1.3fr .5fr;
  gap: 2.5rem;
  align-items: stretch;
}

.split-invert{
  grid-template-columns: .9fr 1.1fr;
}

.split-text{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.split-media{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 100%;
}

.split-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* =====================
   Cards
===================== */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
}

.card{
  background: rgba(255,255,255,.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* =====================
   Contact
===================== */
.contact-wrap{
  text-align: center;
}

.contact-intro{
  max-width: 42ch;
  margin: 0 auto 2rem;
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem;
}

.contact-item{
  background: rgba(255,255,255,.35);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

/* =====================
   Footer
===================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  background: var(--bg);
}

.footer-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.footer-right img{
  width: 130px;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* =====================
   Tablet (≤980px)
===================== */
@media (max-width: 980px){
  .split,
  .split-invert{
    grid-template-columns: 1fr;
  }

  .cards{
    grid-template-columns: 1fr;
  }
}

/* =====================
   Mobile (≤640px)
===================== */
@media (max-width: 640px){

  .hero{
    min-height: 100vh;
  }

  .hero h1,
  .hero .subhead{
    transform: translateY(0);
  }

  .hero h1{
    font-size: clamp(1.75rem, 6vw, 2.2rem);
    max-width: 100%;
  }

  .subhead{
    font-size: 1rem;
  }

  .hero-brand{
    top: -2rem;
    font-size: 1.15rem;
  }

  .split{
    gap: 1.75rem;
  }

  .split-media{
    max-height: 260px;
  }

  .cards{
    gap: 1.5rem;
  }

  .contact-wrap{
    text-align: left;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .contact-item{
    padding: 1.25rem;
  }

  .contact-item a{
    word-break: break-word;
  }

  .hero{
    align-items: flex-start;
  }

  .hero-content{
    padding-top: 1.25rem; 
  }
}
