/* =============================================
   Digitals Daddy — Our Websites Page
   ============================================= */

/* ── RESET & ROOT VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:      #ffffff;
  --bg:         #f8f9fb;
  --bg2:        #f1f3f7;
  --border:     #e2e5ec;
  --text:       #0f1728;
  --body:       #374151;
  --muted:      #6b7280;
  --accent:     #ff6b35;
  --accent-h:   #e85a25;
  --blue:       #1a2b4a;
  --blue-l:     #2563eb;
  --tag-bg:     #fff3ee;
  --tag-c:      #e05a20;
  --radius:     12px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.05);
  --shadow-md:  0 10px 30px rgba(15,23,40,0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 13px;
  padding: 8px 20px;
  letter-spacing: 0.01em;
}

.topbar a {
  color: var(--accent);
  font-weight: 600;
}

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.logo-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--blue);
}

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

/* Desktop Nav */
nav#mainNav {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav#mainNav a {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

nav#mainNav a:hover {
  background: var(--bg);
  color: var(--blue);
}

nav#mainNav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.phone-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.phone-link svg {
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px 16px;
  gap: 2px;
}

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

.mobile-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 9px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav a:hover {
  background: var(--bg);
  color: var(--blue);
}

.mobile-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 52px 28px 44px;
  text-align: center;
}

.page-hero-inner {
  max-width: 660px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--blue-l);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-hero h1 span {
  color: var(--accent);
}

.page-hero p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Stats block */
.hero-stats {
  display: inline-flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.hero-stat {
  padding: 14px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.hero-stat strong em {
  font-style: normal;
  color: var(--accent);
}

.hero-stat small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* ── TOOLBAR ── */
.toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
}

.toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tag-bg);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Search */
.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px 8px 34px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
  width: 210px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box input:focus {
  border-color: var(--accent);
  background: var(--white);
}

/* ── MAIN CONTENT ── */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.count-text {
  font-size: 13.5px;
  color: var(--muted);
}

.count-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
}

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: fadeUp 0.4s both;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays */
.card:nth-child(1)  { animation-delay: 0.04s; }
.card:nth-child(2)  { animation-delay: 0.08s; }
.card:nth-child(3)  { animation-delay: 0.12s; }
.card:nth-child(4)  { animation-delay: 0.16s; }
.card:nth-child(5)  { animation-delay: 0.20s; }
.card:nth-child(6)  { animation-delay: 0.24s; }
.card:nth-child(7)  { animation-delay: 0.28s; }
.card:nth-child(8)  { animation-delay: 0.32s; }
.card:nth-child(9)  { animation-delay: 0.36s; }
.card:nth-child(10) { animation-delay: 0.40s; }
.card:nth-child(11) { animation-delay: 0.44s; }
.card:nth-child(12) { animation-delay: 0.48s; }

/* Card thumbnail */
.card-thumb {
  width: 100%;
  height: 185px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card:hover .card-thumb img {
  transform: scale(1.03);
}

.card-num {
  position: absolute;
  top: 10px;
  left: 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 7px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Browser placeholder */
.thumb-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.browser-mock {
  width: 92px;
  height: 62px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.browser-bar {
  height: 13px;
  background: var(--bg2);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 5px;
  gap: 3px;
}

.bdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.bdot.red    { background: #ff5f56; }
.bdot.yellow { background: #ffbd2e; }
.bdot.green  { background: #27c93f; }

.browser-body {
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bline {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}
.bline.f { width: 100%; }
.bline.m { width: 78%; }
.bline.s { width: 50%; }

.thumb-ph p {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

/* Card body */
.card-body {
  padding: 15px 17px 17px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tag-c);
  background: var(--tag-bg);
  padding: 3px 9px;
  border-radius: 4px;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-live { background: #16a34a; box-shadow: 0 0 4px rgba(22, 163, 74, 0.5); }
.dot-wip  { background: #d97706; box-shadow: 0 0 4px rgba(217, 119, 6, 0.5); }
.dot-plan { background: #9ca3af; }

.card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-l);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, gap 0.15s;
}

.card-link:hover {
  color: var(--accent);
  gap: 7px;
}

.card-year {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tech-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-l);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.02em;
}

/* ── ADD CARD ── */
.card-add {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 270px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.card-add:hover {
  border-color: var(--accent);
  background: var(--tag-bg);
}

.add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--muted);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.card-add:hover .add-icon {
  background: var(--tag-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.card-add p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.card-add small {
  font-size: 12px;
  color: #b5bbc9;
}

/* ── FOOTER ── */
footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.65);
  padding: 34px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {}

.f-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.f-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.f-brand {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.f-brand span {
  color: var(--accent);
}

.f-copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav#mainNav {
    display: none;
  }

  .phone-link {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .topbar {
    display: none;
  }

  .header-inner {
    padding: 0 16px;
  }

  .page-hero {
    padding: 36px 16px 30px;
  }

  .hero-stats {
    flex-direction: column;
    width: 100%;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    width: 100%;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .toolbar {
    padding: 12px 16px;
  }

  .content {
    padding: 20px 16px 48px;
  }

  footer {
    padding: 24px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box input {
    width: 160px;
  }
}
