/* =============================================
   SITE 6: HarbourPoint Cleaning Co. — Halifax
   CONCEPT: Maritime Corporate
   VIBE: Deep Navy, Nautical Gold, crisp white,
   solid geometric layouts, formal and
   established Atlantic aesthetic.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Public+Sans:wght@300;400;600;700&display=swap');

:root {
  --navy-dark: #0A192F;
  --navy: #112240;
  --navy-light: #233554;
  --gold: #D4AF37;
  --gold-dark: #AA8B28;
  --gold-light: #F3E5AB;
  --off-white: #F8F9FA;
  --white: #FFFFFF;
  --text-main: #333333;
  --text-muted: #666666;
  
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Public Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-main);
  line-height: 1.6;
}

::selection { background: var(--gold); color: var(--navy-dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Filter hack to make earth-toned images look nautical (cool blues/greys) */
img.maritime-filter {
  filter: grayscale(0.5) sepia(0.3) hue-rotate(180deg) brightness(0.9) contrast(1.15);
}

.hp-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Transitions */
.slide-in {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease-out;
}
.slide-in.right { transform: translateX(30px); }
.slide-in.up { transform: translateY(30px); }
.slide-in.visible { opacity: 1; transform: translate(0, 0); }

/* ============ HEADER ============ */
.hp-header {
  background: var(--navy-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold);
}

.hp-head-top {
  background: var(--navy);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hp-head-top .hp-container {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
}
.hp-head-top a:hover { color: var(--gold); }

.hp-head-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.hp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.hp-logo svg { width: 32px; height: 32px; }

.hp-nav { display: flex; gap: 32px; align-items: center; }
.hp-nav a { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; }
.hp-nav a:hover { color: var(--gold); }

.hp-btn-gold {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.3s;
}
.hp-btn-gold:hover { background: var(--gold-light); }

.hp-mob-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--gold); cursor: pointer; }

/* ============ SPLIT HERO ============ */
.hp-hero {
  display: flex;
  min-height: calc(100vh - 110px);
  background: var(--navy-dark);
}

.hp-hero-content {
  flex: 1;
  padding: 100px 5% 100px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hp-hero-img-sec {
  flex: 1;
  position: relative;
}

.hp-hero-img-sec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hp-hero-content h1 span { color: var(--gold); font-style: italic; }

.hp-hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 500px;
}

.hp-hero-acts { display: flex; gap: 16px; }
.hp-btn-outline { border: 2px solid var(--white); color: var(--white); padding: 10px 24px; font-weight: 700; border-radius: 2px; transition: all 0.3s; }
.hp-btn-outline:hover { background: var(--white); color: var(--navy-dark); }

/* ============ INFO BAR ============ */
.hp-info-bar {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid #E0E0E0;
}
.hp-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.hp-info-item h4 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy-dark); margin-bottom: 8px; }
.hp-info-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ============ SERVICES ============ */
.hp-services { padding: 100px 0; }
.hp-sec-head { text-align: center; margin-bottom: 60px; }
.hp-sec-head span { display: block; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.hp-sec-head h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--navy-dark); }

.hp-s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.hp-s-card {
  background: var(--white);
  border-top: 4px solid var(--navy);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s, border-color 0.3s;
}
.hp-s-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.hp-s-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 16px; }
.hp-s-card p { color: var(--text-muted); margin-bottom: 24px; }
.hp-s-card a { font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; display: inline-block; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.hp-s-card a:hover { border-color: var(--gold); }

/* ============ ABOUT SECTION ============ */
.hp-about { padding: 100px 0; background: var(--navy); color: var(--white); }
.hp-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hp-about-img { border: 8px solid var(--navy-light); position: relative; }
.hp-about-img img { width: 100%; height: auto; }
.hp-about-img::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 100%; height: 100%; border: 4px solid var(--gold); z-index: -1; }
.hp-about-text h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 24px; }
.hp-about-text p { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 1.1rem; }
.hp-about-list { list-style: none; margin: 30px 0; }
.hp-about-list li { margin-bottom: 12px; padding-left: 30px; position: relative; font-weight: 600; }
.hp-about-list li::before { content: '⚓'; position: absolute; left: 0; color: var(--gold); font-size: 0.9rem; }

/* ============ CONTACT ============ */
.hp-contact { padding: 100px 0; }
.hp-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; background: var(--white); padding: 60px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.hp-c-info h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--navy-dark); margin-bottom: 24px; }
.hp-c-item { margin-bottom: 30px; }
.hp-c-item strong { display: block; color: var(--gold-dark); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 8px; }
.hp-c-item p, .hp-c-item a { font-size: 1.1rem; color: var(--text-main); font-weight: 600; }

.hp-form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.hp-form input, .hp-form select, .hp-form textarea { width: 100%; padding: 14px; border: 1px solid #CCC; font-family: var(--font-body); font-size: 1rem; border-radius: 2px; }
.hp-form input:focus, .hp-form select:focus, .hp-form textarea:focus { outline: none; border-color: var(--navy); }
.hp-form textarea { height: 120px; resize: vertical; margin-bottom: 20px; }

/* ============ BLOG TEASER ============ */
.hp-blog { padding: 80px 0 120px; background: var(--off-white); }
.hp-b-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.hp-b-card { background: var(--white); display: flex; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.hp-b-img { width: 200px; flex-shrink: 0; }
.hp-b-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-b-txt { padding: 30px; }
.hp-b-meta { font-size: 0.8rem; color: var(--gold-dark); text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.hp-b-txt h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--navy-dark); margin-bottom: 12px; }
.hp-b-txt p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ FOOTER ============ */
.hp-footer { background: var(--navy-dark); color: var(--white); padding: 80px 0 40px; border-top: 4px solid var(--gold); }
.hp-f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.hp-f-brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.hp-footer h4 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold); margin-bottom: 20px; }
.hp-footer ul { list-style: none; }
.hp-footer li { margin-bottom: 12px; }
.hp-footer a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.hp-footer a:hover { color: var(--white); }
.hp-f-bot { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.hp-f-links a { margin-left: 20px; }

/* ============ INNER PAGES ============ */
.hp-page-header { background: var(--navy-dark); padding: 100px 0 80px; text-align: center; color: var(--white); border-bottom: 4px solid var(--gold); }
.hp-page-header h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 16px; }
.hp-page-header p { font-size: 1.2rem; color: rgba(255,255,255,0.8); }

.hp-content-area { padding: 80px 0; }
.hp-article { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.hp-article h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--navy-dark); margin: 40px 0 20px; }
.hp-article h3 { font-size: 1.4rem; color: var(--navy); margin: 30px 0 16px; }
.hp-article p { margin-bottom: 20px; font-size: 1.05rem; }
.hp-article ul { margin: 20px 0 30px 30px; }
.hp-article li { margin-bottom: 10px; font-size: 1.05rem; }
.hp-article img { margin: 40px 0; border: 4px solid var(--navy-light); }

.hp-sidebar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; }
.hp-sidebar { position: sticky; top: 120px; }
.hp-sb-menu { background: var(--white); border-top: 4px solid var(--navy); margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.hp-sb-menu a { display: block; padding: 16px 24px; border-bottom: 1px solid #EEE; font-weight: 600; color: var(--text-main); transition: background 0.3s; }
.hp-sb-menu a:hover, .hp-sb-menu a.active { background: var(--off-white); color: var(--navy); padding-left: 30px; }
.hp-sb-contact { background: var(--navy); color: var(--white); padding: 30px; border-bottom: 4px solid var(--gold); }
.hp-sb-contact h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 16px; }
.hp-sb-contact a { display: block; font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-top: 10px; }

/* Thank You */
.hp-ty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.hp-ty-card { background: var(--white); padding: 40px; border-top: 4px solid var(--gold); text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.hp-ty-num { font-family: var(--font-heading); font-size: 3rem; color: var(--navy-light); opacity: 0.2; line-height: 1; margin-bottom: 16px; }
.hp-ty-card h3 { font-size: 1.2rem; color: var(--navy-dark); margin-bottom: 12px; }

/* Cookie */
.hp-cookie { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy-dark); color: var(--white); padding: 20px; z-index: 9999; transform: translateY(100%); transition: transform 0.5s; border-top: 2px solid var(--gold); }
.hp-cookie.show { transform: translateY(0); }
.hp-c-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.hp-c-inner p { font-size: 0.9rem; }
.hp-c-inner a { color: var(--gold); text-decoration: underline; }
.hp-c-btns button { padding: 8px 20px; margin-left: 10px; font-weight: 700; cursor: pointer; border: none; }
.hp-btn-acc { background: var(--gold); color: var(--navy-dark); }
.hp-btn-dec { background: transparent; border: 1px solid var(--white) !important; color: var(--white); }

/* Responsive */
@media (max-width: 1024px) {
  .hp-hero { flex-direction: column; }
  .hp-hero-content { padding: 80px 24px; text-align: center; align-items: center; }
  .hp-hero-img-sec { height: 400px; }
  .hp-about-grid { grid-template-columns: 1fr; }
  .hp-contact-grid { grid-template-columns: 1fr; padding: 40px 24px; }
  .hp-sidebar-layout { grid-template-columns: 1fr; }
  .hp-b-card { flex-direction: column; }
  .hp-b-img { width: 100%; height: 200px; }
  .hp-f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hp-head-top { display: none; }
  .hp-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 20px; border-bottom: 2px solid var(--gold); }
  .hp-nav.active { display: flex; }
  .hp-mob-btn { display: block; }
  .hp-info-grid { grid-template-columns: 1fr; gap: 20px; }
  .hp-s-grid { grid-template-columns: 1fr; }
  .hp-b-grid { grid-template-columns: 1fr; }
  .hp-form .f-row { grid-template-columns: 1fr; }
  .hp-ty-grid { grid-template-columns: 1fr; }
  .hp-f-grid { grid-template-columns: 1fr; }
  .hp-f-bot { flex-direction: column; gap: 16px; text-align: center; }
  .hp-c-inner { flex-direction: column; gap: 16px; text-align: center; }
}
