/* ═══ FONTS ═══ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600&display=swap');

/* ═══ TOKENS ═══ */
:root {
  --slate: #1e2822;
  --slate-mid: #2e3d35;
  --sage: #5a7d5f;
  --sage-light: #a8c5ac;
  --sage-pale: #eaf2eb;
  --pebble: #f4f1eb;
  --cream: #faf8f4;
  --stone: #ddd9d1;
  --stone-mid: #8a8278;
  --text: #2a2e2b;
  --leaf: #3d6644;
  --card-bg: #faf8f4;
  --body-bg: #f4f1eb;
  --nav-bg: rgba(250, 248, 244, 0.97);
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(30,40,34,0.10);
}

body.dark-mode {
  --text: #e8e4df;
  --card-bg: #1e2822;
  --body-bg: #141a16;
  --nav-bg: rgba(20, 26, 22, 0.97);
  --stone: rgba(255, 255, 255, 0.1);
  --stone-mid: #8a9e8e;
  --cream: #1e2822;
  --pebble: #141a16;
  --slate: #e8e4df;
  --slate-mid: #c5d4c8;
}

/* ═══ BASE ═══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 1.75;
  background: var(--body-bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate);
}
h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: 700;
  color: var(--leaf);
}

p { font-size: 1.2rem; line-height: 1.85; }
a { color: var(--leaf); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--leaf); }
.nav-cta {
  background: var(--leaf);
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--slate);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.dark-toggle {
  background: none;
  border: 1.5px solid var(--stone);
  border-radius: 100px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s;
}
.dark-toggle:hover { border-color: var(--leaf); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-left: 5%;
  padding-right: 0;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
.hero-content {
  padding: 4rem 0;
  max-width: 560px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-pale);
  color: var(--leaf);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--stone-mid);
  margin-bottom: 2.4rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-primary {
  background: var(--leaf);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover {
  background: var(--slate);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--slate);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--stone);
  transition: border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--leaf);
  display: block;
}
.hero-stat-label {
  font-size: 0.9rem;
  color: var(--stone-mid);
}
.hero-image {
  height: 100%;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% center;
  display: block;
}

/* ═══ MARQUEE ═══ */
.marquee-wrap {
  background: var(--leaf);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 0 2rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
}
.marquee-track span::after {
  content: '·';
  margin-left: 2rem;
  opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══ SECTIONS ═══ */
section { padding: 5rem 5%; }

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.75rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.2rem;
  color: var(--stone-mid);
  max-width: 600px;
  line-height: 1.75;
}

/* ═══ PORTFOLIO ═══ */
.portfolio { background: var(--cream); }
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
  text-decoration: none;
  display: block;
  border: 1px solid var(--stone);
}
.portfolio-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 50px rgba(30,40,34,0.18);
  text-decoration: none;
}
.portfolio-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover img {
  transform: scale(1.04);
}
.portfolio-card-info {
  padding: 1.4rem 1.6rem;
}
.portfolio-card-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 0;
}
.portfolio-card-arrow {
  font-size: 1rem;
  color: var(--leaf);
  margin-top: 0.4rem;
  display: block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.portfolio-card:hover .portfolio-card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.portfolio-view-all {
  text-align: center;
  margin-top: 2.5rem;
}
.portfolio-view-all a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--leaf);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--sage-light);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.portfolio-view-all a:hover {
  border-color: var(--leaf);
  text-decoration: none;
}

/* ═══ SERVICES ═══ */
.services { background: var(--pebble); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-badge {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}
.service-badge--gold {
  background: #fdf3dc;
  color: #9a6c00;
}
.service-badge--blue {
  background: #e8f0fe;
  color: #1a56b0;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 1.15rem;
  color: var(--stone-mid);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-list li {
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.service-list li::before {
  content: '✓';
  color: var(--leaf);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══ PRICING ═══ */
.pricing { background: var(--cream); }
.pricing-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}
.pricing-note {
  font-size: 1rem;
  color: var(--stone-mid);
  margin-top: 0.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}
.pricing-card.featured h3,
.pricing-card.featured p,
.pricing-card.featured li {
  color: #fff;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage-light);
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.pricing-tagline {
  font-size: 1.05rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
  display: block;
}
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-features li {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
  color: var(--text);
}
.pricing-card.featured .pricing-features li {
  border-bottom-color: rgba(255,255,255,0.15);
}
.pricing-features li::before {
  content: '✓';
  color: var(--leaf);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card.featured .pricing-features li::before {
  color: var(--sage-light);
}
.pricing-cta {
  display: block;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--leaf);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.pricing-card.featured .pricing-cta {
  background: #fff;
  color: var(--leaf);
}
.pricing-cta:hover {
  background: var(--slate);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--sage-pale);
  color: var(--leaf);
}
.pricing-footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--stone-mid);
}
.pricing-footer-note strong {
  color: var(--text);
}

/* ═══ ABOUT ═══ */
.about { background: var(--pebble); }
.about-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.about-content h2 { margin-bottom: 1.2rem; }
.about-content p {
  font-size: 1.2rem;
  color: var(--stone-mid);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.about-tag {
  background: var(--sage-pale);
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* ═══ HOSTING ═══ */
.hosting { background: var(--cream); }
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.hosting-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.hosting-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.hosting-card p {
  font-size: 1.1rem;
  color: var(--stone-mid);
  line-height: 1.7;
}

/* ═══ CONTACT ═══ */
.contact { background: var(--pebble); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info p {
  font-size: 1.1rem;
  color: var(--stone-mid);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text);
}
.contact-detail a { color: var(--leaf); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--leaf);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--leaf);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--slate);
  transform: translateY(-2px);
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  padding: 3rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
footer .footer-logo img {
  height: 32px;
  filter: brightness(10);
}
footer .footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
footer p { font-size: 0.95rem; }
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
}
footer a:hover { color: #fff; }
.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ═══ SCROLL TO TOP ═══ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--leaf);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ MOBILE ═══ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 5% 3rem;
    min-height: auto;
  }
  .hero-image {
    min-height: 320px;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .portfolio-grid,
  .services-grid,
  .pricing-grid,
  .hosting-grid {
    grid-template-columns: 1fr;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--nav-bg);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--stone);
  }
  .nav-hamburger { display: flex; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
}

/* ═══ ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
