/* =============================================
   Jon Argaman - Writing Coach
   Shared Stylesheet
   Tuned to match jargaman.com (fonts, sizes, hero)
   ============================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cardo', Georgia, 'Times New Roman', serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #1A4742;
  text-decoration: underline;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cardo', Georgia, 'Times New Roman', serif;
  color: #1A4742;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.4rem;
  line-height: 1.22;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

p {
  margin-bottom: 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1.2rem 1.5rem;
}

li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

strong {
  font-weight: 700;
  color: #1A4742;
}

em {
  font-style: italic;
}

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

/* Layout containers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.site-nav {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1A4742;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-logo span {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A4742;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1A4742;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1A4742;
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: #1A4742;
  opacity: 1;
}

/* Section base */
.section {
  padding: 5rem 0;
}

.section h2 {
  margin-bottom: 1.5rem;
}

.section-warm {
  background: #EEF5F7;
}

.section-gray {
  background: #F3F3F3;
}

.section-pink {
  background: #FFF7FA;
}

.section-accent {
  background: #1A4742;
  color: #fff;
}

.section-accent h2,
.section-accent h3 {
  color: #fff;
}

/* Hero — full-bleed photo, text on the right */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 440px;
  max-height: 760px;
  background-image: url('images/jargaman_hero_background.jpeg');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  top: 40%;
  left: 52%;
  width: 46%;
  max-width: 680px;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  color: #fff;
  transform: translateY(-50%);
}

.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero .btn {
  background: #B0E3DD;
  color: #1A4742;
  font-weight: 700;
}

.hero .btn:hover {
  background: #8fd4cc;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #1A4742;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn:hover {
  background: #123835;
  opacity: 1;
  text-decoration: none;
}

/* Content lists */
.dash-list {
  list-style: none;
  margin: 1rem 0 1.5rem 0;
  padding: 0;
}

.dash-list li {
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
  margin-bottom: 0.9rem;
}

.dash-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #6a7a78;
  font-weight: 400;
  font-size: 0.9em;
  top: 0.25rem;
}

.fit-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

.fit-list li {
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
  line-height: 1.6;
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  background: #333333;
  border-radius: 50%;
  opacity: 0.75;
}

/* Services: image + text rows */
.service-with-image {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #ffffff;
  padding: 2rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-with-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.service-with-image h3 {
  margin-bottom: 0.75rem;
  color: #1A4742;
}

.service-with-image ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.service-with-image .price {
  font-weight: 700;
  color: #1A4742;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
  background: #ffffff;
  padding: 2rem 2.25rem;
  border-radius: 4px;
  margin-bottom: 1.75rem;
  border-left: 3px solid #B0E3DD;
}

.testimonial blockquote {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 1.1rem;
  font-family: 'Cardo', Georgia, 'Times New Roman', serif;
}

.testimonial .attribution {
  font-weight: 700;
  color: #1A4742;
  font-style: normal;
  margin-bottom: 0.15rem;
}

.testimonial .role {
  font-size: 0.9rem;
  color: #666;
  font-style: normal;
  margin-bottom: 0;
}

/* Logos */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0 2rem;
}

.logo-row img {
  max-height: 105px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: opacity 0.15s, filter 0.15s;
}

.logo-row img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image {
  width: 100%;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: #1A4742;
  color: #ffffff;
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    aspect-ratio: auto;
    min-height: 520px;
    background-position: center top;
  }
  .hero-content {
    position: static;
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding: 3rem 2rem;
    background: rgba(26,71,66,0.45);
    text-align: center;
    transform: none;
    top: auto;
    left: auto;
    /* stack below the photo via absolute->static reset; push down */
    margin-top: 280px;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .service-with-image {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-with-image img {
    max-width: 320px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }
  .section {
    padding: 3.5rem 0;
  }
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.9rem;
  }
  .logo-row {
    gap: 1.5rem;
  }
  .logo-row img {
    max-height: 75px;
  }
}
