/* ============================================
   FOLIX PERSONAL SITE — Global Styles
   Palette: #FFC570 #EFD2B0 #547792 #1A3263
   ============================================ */

:root {
  --gold:   #FFC570;
  --linen:  #EFD2B0;
  --ocean:  #547792;
  --navy:   #1A3263;
  --white:  #FAFAF8;
  --text:   #1a1a2e;
  --muted:  #6b7280;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-width: 1100px;
  --radius: 4px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--muted); max-width: 65ch; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linen);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--ocean); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Hero ── */
.hero {
  padding: 7rem 0 5rem;
  background: linear-gradient(160deg, var(--white) 60%, var(--linen) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,197,112,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 680px; }
.hero-content .section-label { margin-bottom: 1rem; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content p  { font-size: 1.1rem; margin-bottom: 2rem; color: var(--muted); }

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

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

/* ── Client Logos ── */
.clients { background: var(--linen); padding: 3.5rem 0; }

.clients-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 2rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  justify-items: center;
}

.logo-item {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.55;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.logo-item:hover { opacity: 1; }

.logo-item img {
  height: 80px;
  width: 100%;
  max-width: 200px;
  object-fit: contain;
  filter: opacity(0.75);
  transition: filter var(--transition);
  display: block;
}
.logo-item img.blend {
  mix-blend-mode: multiply;
}
.logo-item img.logo-lg {
  max-width: 600px;
  height: 160px;
}.logo-item:hover img { filter: opacity(1); }

.logo-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.4;
  transition: opacity var(--transition);
  text-align: center;
  line-height: 1.3;
}
.logo-text:hover { opacity: 0.85; }

/* ── Services Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(26,50,99,0.08);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.card p  { font-size: 0.9rem; }

/* ── Blog Preview ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.post-card {
  border-top: 3px solid var(--gold);
  padding: 1.5rem 0;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--ocean);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.post-card p  { font-size: 0.875rem; }
.post-card a.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ocean);
  letter-spacing: 0.05em;
}
.post-card a.read-more:hover { color: var(--navy); }

/* ── Contact Form ── */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--linen);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--ocean);
}

textarea { resize: vertical; min-height: 140px; }

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

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 100%);
  padding: 5rem 0 4rem;
  color: var(--white);
}

.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 55ch; margin-top: 1rem; }
.page-hero .section-label { color: var(--gold); }

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--linen);
  transition: box-shadow var(--transition);
}
.portfolio-item:hover { box-shadow: 0 8px 32px rgba(26,50,99,0.1); }

.portfolio-thumb {
  height: 200px;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-info { padding: 1.25rem; }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.portfolio-info p  { font-size: 0.85rem; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--linen);
  color: var(--ocean);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-top: 0.75rem;
  margin-right: 0.25rem;
}

/* ── Dogs Page ── */
.dogs-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 2rem;
  background: var(--linen);
}

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

.pricing-card {
  border: 1.5px solid var(--linen);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--white), #fffbf4);
}

.price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0.75rem 0;
}

.price span { font-size: 1rem; color: var(--muted); }

.pricing-card ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pricing-card ul li { padding: 0.3rem 0; }
.pricing-card ul li::before { content: '✓  '; color: var(--ocean); font-weight: 700; }

/* ── Blog Page ── */
.blog-list { margin-top: 3rem; }

.blog-post-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--linen);
  align-items: start;
}

.blog-date {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--navy);
}

.blog-date .day   { font-size: 2rem; font-weight: 700; line-height: 1; }
.blog-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ocean); }

.blog-post-row h3 { margin-bottom: 0.4rem; }
.blog-post-row p  { font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .blog-post-row { grid-template-columns: 1fr; }
  .blog-date { display: none; }
  .nav-links { gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .nav-links { display: none; }
}
