/* =====================================================
   Dad's Corner - Main Stylesheet
   ===================================================== */

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

:root {
  --color-primary:    #2c5f8a;
  --color-primary-dk: #1a3f5f;
  --color-accent:     #e87722;
  --color-accent-lt:  #f4a355;
  --color-bg:         #f7f9fc;
  --color-surface:    #ffffff;
  --color-text:       #2d3748;
  --color-text-muted: #718096;
  --color-border:     #e2e8f0;
  --radius:           8px;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow-md:        0 4px 12px rgba(0,0,0,.12);
  --transition:       0.25s ease;
  --font-sans:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading:     'Georgia', 'Times New Roman', serif;
  --max-w:            1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-accent); }

ul { list-style: none; }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-primary-dk);
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: var(--color-accent);
  margin-top: .3rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

section { padding: 5rem 0; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--color-primary-dk);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.site-logo span { color: var(--color-accent-lt); }

.site-logo svg { flex-shrink: 0; }

.footer-brand .site-logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--color-accent-lt);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.3)), url('../images/230333.png') center / cover no-repeat;
  color: #fff;
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent-lt);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-lt);
  border-color: var(--color-accent-lt);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

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

/* ---- Features / Cards ---- */
.features { background: var(--color-surface); }

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary-dk);
  margin-bottom: .6rem;
}

.card p { color: var(--color-text-muted); font-size: .95rem; }

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  font-size: 5rem;
}

.about-text p { margin-bottom: 1rem; color: var(--color-text-muted); }

.about-text .btn { margin-top: 1rem; background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.about-text .btn:hover { background: var(--color-primary-dk); border-color: var(--color-primary-dk); color: #fff; }

/* ---- Posts / Blog ---- */
.posts { background: var(--color-surface); }

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

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-body { padding: 1.5rem; }

.post-meta {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
  letter-spacing: .03em;
}

.post-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary-dk);
  margin-bottom: .5rem;
}

.post-card p { font-size: .9rem; color: var(--color-text-muted); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.read-more:hover { color: var(--color-accent); }

.posts-footer { text-align: center; margin-top: 3rem; }

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary-dk);
  margin-bottom: 1rem;
}

.contact-info p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

.contact-details li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: .95rem;
}

.contact-details .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }

/* Contact Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44,95,138,.15);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit { width: 100%; border: none; font-family: inherit; cursor: pointer; }

/* Form feedback */
.form-success {
  display: none;
  padding: 1rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius);
  color: #155724;
  text-align: center;
  margin-top: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dk);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand .site-logo { font-size: 1.25rem; margin-bottom: .8rem; display: block; }

.footer-brand p { font-size: .9rem; line-height: 1.6; }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 1rem;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}

.footer-bottom a { color: var(--color-accent-lt); }
.footer-bottom a:hover { color: #fff; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--color-primary-dk);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}

.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ---- About Page Content ---- */
.about-full { background: var(--color-surface); }

.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dk);
  margin: 1.5rem 0 .8rem;
}

.about-content p { color: var(--color-text-muted); margin-bottom: 1rem; }

.about-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-content ul li { margin-bottom: .5rem; }

.about-sidebar .card { text-align: left; margin-bottom: 1.5rem; }
.about-sidebar .card h3 { text-align: left; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .about-full-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-primary-dk);
    padding: 1rem 1.5rem 1.5rem;
    gap: .5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: .6rem 0; border-bottom: none; font-size: 1rem; }

  .nav-toggle { display: flex; }

  .site-header { position: relative; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}
