/*
Theme Name: The Port of Newcastle
Theme URI: https://theportofnewcastle.com
Author: Brandon Hebert
Author URI: https://thehebertgroup.ca
Description: Hyperlocal real estate authority theme for Port of Newcastle community
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: port-of-newcastle
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --sage:       #5F6A5A;
  --sage-light: #7a8a74;
  --champagne:  #C1A97D;
  --dark:       #1C1C1C;
  --off-white:  #F7F5F2;
  --mid-grey:   #E8E5E0;
  --text-body:  #2E2E2E;

  --font-display: 'Cambria', 'Georgia', serif;
  --font-body:    'Calibri', 'Gill Sans', sans-serif;

  --max-width: 1100px;
  --radius: 3px;
  --transition: 0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--off-white);
}

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

a { color: var(--sage); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--champagne); }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section { padding: 80px 0; }
.section--dark { background: var(--dark); color: var(--off-white); }
.section--dark h2, .section--dark h3 { color: var(--off-white); }
.section--sage { background: var(--sage); color: var(--off-white); }
.section--sage h2 { color: var(--off-white); }
.section--mid { background: var(--mid-grey); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-sub {
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--champagne);
  color: var(--dark);
  border-color: var(--champagne);
}
.btn-primary:hover {
  background: transparent;
  color: var(--champagne);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border-color: var(--off-white);
}
.btn-outline:hover {
  background: var(--off-white);
  color: var(--dark);
}

.btn-sage {
  background: var(--sage);
  color: var(--off-white);
  border-color: var(--sage);
}
.btn-sage:hover {
  background: transparent;
  color: var(--sage);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 28, 28, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(193,169,125,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--off-white);
  letter-spacing: 0.04em;
}

.nav-logo span {
  color: var(--champagne);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(247,245,242,0.8);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--champagne); }

.nav-links .nav-cta a {
  background: var(--champagne);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: var(--radius);
}

.nav-links .nav-cta a:hover {
  background: var(--sage);
  color: var(--off-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(193,169,125,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,28,28,0.78) 0%, rgba(28,28,28,0.45) 60%, rgba(95,106,90,0.3) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content .eyebrow {
  font-size: 0.8rem;
}

.hero h1 {
  color: var(--off-white);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--champagne);
}

.hero-sub {
  color: rgba(247,245,242,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247,245,242,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--champagne);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--champagne);
  padding: 28px 0;
}

.intro-strip .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.intro-strip p {
  color: var(--dark);
  font-size: 1rem;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
}

.intro-strip strong {
  font-style: normal;
}

/* ============================================================
   ABOUT BRANDON
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(20%);
}

.about-img::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--champagne);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text .stat-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--mid-grey);
  border-bottom: 1px solid var(--mid-grey);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img::before { display: none; }
}

/* ============================================================
   COMMUNITY CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mid-grey);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 0.5rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.92rem;
  color: #666;
  margin: 0;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG POSTS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mid-grey);
  transition: transform var(--transition);
}

.post-card:hover { transform: translateY(-3px); }

.post-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
  background: var(--mid-grey);
}

.post-card-body { padding: 1.25rem; }

.post-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.4rem;
  display: block;
}

.post-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-card p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.read-more {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWSLETTER / ONLY THE PORT
   ============================================================ */
.newsletter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(247,245,242,0.3);
  background: rgba(247,245,242,0.1);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(247,245,242,0.5); }

.newsletter-form button {
  padding: 14px 24px;
  background: var(--champagne);
  color: var(--dark);
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--transition);
}

.newsletter-form button:hover { background: var(--sage-light); color: var(--off-white); }

.newsletter-issues {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.issue-item {
  background: rgba(247,245,242,0.05);
  border: 1px solid rgba(247,245,242,0.1);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.issue-item:hover { background: rgba(247,245,242,0.1); }

.issue-title { font-size: 0.95rem; color: var(--off-white); }
.issue-date { font-size: 0.8rem; color: var(--champagne); }

@media (max-width: 768px) {
  .newsletter-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: rgba(247,245,242,0.04);
  border: 1px solid rgba(247,245,242,0.1);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--champagne);
  opacity: 0.4;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial p {
  font-size: 0.95rem;
  color: rgba(247,245,242,0.85);
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--champagne);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--sage);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--off-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(247,245,242,0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  padding: 60px 0 30px;
  color: rgba(247,245,242,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-contact a {
  display: block;
  color: rgba(247,245,242,0.6);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--champagne); }

.footer-col h4 {
  color: var(--off-white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(247,245,242,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--champagne); }

.footer-bottom {
  border-top: 1px solid rgba(247,245,242,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(247,245,242,0.4);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--champagne); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,28,28,0.75);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 { color: var(--off-white); margin-bottom: 1rem; }
.page-hero p { color: rgba(247,245,242,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
}

.form-group textarea { height: 130px; resize: vertical; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   MARKET WATCH
   ============================================================ */
.market-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.market-stat {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--mid-grey);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.market-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sage);
  display: block;
  margin-bottom: 0.25rem;
}

.market-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.market-stat-change {
  font-size: 0.85rem;
  color: var(--sage);
  margin-top: 0.4rem;
  display: block;
}

@media (max-width: 900px) {
  .market-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .market-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BLOG SINGLE
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.blog-content h2 { margin: 2rem 0 1rem; }
.blog-content h3 { margin: 1.5rem 0 0.75rem; }
.blog-content p { margin-bottom: 1.25rem; }

.blog-sidebar-widget {
  background: white;
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.blog-sidebar-widget h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mid-grey);
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.divider {
  width: 48px;
  height: 2px;
  background: var(--champagne);
  margin: 1rem 0 2rem;
}
.divider-center { margin: 1rem auto 2rem; }
