/* =============================================================
   DadRental - assets/css/style.css
   Colors: Navy #0d1f2d | Orange #EE6C2F | Yellow #fae2a7
   ============================================================= */

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

:root {
    --navy:   #0d1f2d;
    --orange: #EE6C2F;
    --yellow: #fae2a7;
    --white:  #ffffff;
    --light:  #f7f8fa;
    --gray:   #6b7280;
    --border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 2px 16px rgba(13,31,45,0.10);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; }

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { opacity: 0.85; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --------------------------
   Buttons
   -------------------------- */
.btn-primary {
    background: var(--orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: opacity .2s, transform .1s;
}
.btn-primary:hover { opacity: .9; color: var(--white); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 16px 32px; font-size: 17px; }

.btn-nav-search {
    background: transparent;
    color: var(--navy);
    border: 2px solid rgba(13,31,45,.2);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
}
.btn-nav-search:hover { border-color: var(--navy); color: var(--navy); background: rgba(13,31,45,.05); }
.btn-nav-search i { font-size: 13px; }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all .2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-secondary {
    background: var(--navy);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: opacity .2s;
}
.btn-secondary:hover { opacity: .85; color: var(--white); }

/* --------------------------
   Header
   -------------------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo img { height: 40px; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { color: var(--navy); font-weight: 500; font-size: 15px; }
.header-nav a:hover { color: var(--orange); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--navy);
    cursor: pointer;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--navy);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background .15s;
    display: block;
}
.mobile-menu a:hover { background: var(--light); color: var(--orange); }

/* --------------------------
   Hero
   -------------------------- */
.hero {
    background: var(--navy);
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(238,108,47,0.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge-img { width: 100px; margin: 0 auto 24px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 18px; }
.text-orange { color: var(--orange); }
.hero-sub { color: rgba(255,255,255,.80); font-size: 17px; max-width: 600px; margin: 0 auto 36px; }

/* Search */
.hero-search { max-width: 720px; margin: 0 auto 20px; }
.search-inner {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-right: 1px solid var(--border);
    gap: 10px;
}
.search-field i { color: var(--gray); font-size: 15px; }
.search-field input, .search-field select {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    padding: 16px 0;
    background: transparent;
}
.search-btn { border-radius: 0; padding: 16px 28px; white-space: nowrap; font-size: 15px; }
.hero-proof { color: rgba(255,255,255,.70); font-size: 14px; }
.hero-proof i { color: #4ade80; margin-right: 6px; }

/* --------------------------
   Section Titles
   -------------------------- */
.section-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--gray); font-size: 16px; margin-bottom: 48px; }

/* --------------------------
   Services Grid
   -------------------------- */
.services-section { padding: 70px 0; background: var(--light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 12px;
    text-align: center;
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.service-card i { font-size: 28px; color: var(--orange); }
.service-card:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }

/* --------------------------
   How It Works
   -------------------------- */
.how-section { padding: 70px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}
.step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon { font-size: 36px; color: var(--navy); margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 14px; }

/* --------------------------
   Why DadRental
   -------------------------- */
.why-section { background: var(--navy); padding: 70px 0; }
.why-inner { display: flex; align-items: center; gap: 60px; }
.why-text { flex: 1; }
.why-text h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--white); margin-bottom: 32px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list li > i { color: var(--orange); font-size: 22px; margin-top: 2px; flex-shrink: 0; }
.why-list li strong { color: var(--white); display: block; font-size: 16px; margin-bottom: 4px; }
.why-list li p { color: rgba(255,255,255,.70); font-size: 14px; margin: 0; }
.why-badge { flex-shrink: 0; }
.why-badge img { width: 220px; }

/* --------------------------
   Dad CTA
   -------------------------- */
.dad-cta-section { background: #f3f4f6; padding: 70px 0; }
.dad-cta-inner { max-width: 680px; }
.dad-cta-text h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.dad-cta-text p { color: var(--navy); font-size: 16px; margin-bottom: 24px; opacity: .85; }
.dad-cta-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.dad-cta-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; }
.dad-cta-list li i { color: var(--orange); }

/* --------------------------
   Footer
   -------------------------- */
.site-footer { background: var(--navy); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo p { color: rgba(255,255,255,.60); font-size: 14px; margin-top: 12px; }
.footer-logo img { filter: brightness(0) invert(1); }
.footer-links h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.60); font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 20px 0; }
.footer-bottom p { color: rgba(255,255,255,.40); font-size: 13px; text-align: center; }

/* --------------------------
   Forms (shared)
   -------------------------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    background: var(--white);
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gray); margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* --------------------------
   Page layout (inner pages)
   -------------------------- */
.page-hero { background: var(--navy); padding: 48px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.70); margin-top: 8px; font-size: 16px; }

.page-body { padding: 48px 0 80px; }

/* --------------------------
   Dad Cards (search results)
   -------------------------- */
.dad-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.dad-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(13,31,45,.12); }
.dad-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--light); }
.dad-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 28px; font-weight: 700; flex-shrink: 0; }
.dad-info { flex: 1; }
.dad-info h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.dad-location { color: var(--gray); font-size: 13px; margin-bottom: 10px; }
.dad-location i { color: var(--orange); margin-right: 4px; }
.dad-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dad-service-tag { background: var(--light); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); }
.dad-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.dad-rating .stars { color: #f59e0b; }
.dad-cert { width: 36px; flex-shrink: 0; }

/* --------------------------
   Dashboard layout
   -------------------------- */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar { display: flex; flex-direction: column; width: 240px; min-height: 100vh; background: var(--navy); padding: 24px 0 0; flex-shrink: 0; }
.dash-sidebar .sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.dash-sidebar .sidebar-logo img { filter: brightness(0) invert(1); height: 32px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,.70); font-size: 14px; font-weight: 500; transition: all .2s; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(238,108,47,.15); color: var(--white); border-left: 3px solid var(--orange); padding-left: 17px; }
.dash-nav a i { width: 18px; text-align: center; }
.dash-main { flex: 1; background: var(--light); padding: 32px; overflow-y: auto; }
.dash-main h1 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 24px; }

/* Stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-label { font-size: 12px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-card .stat-icon { float: right; font-size: 24px; color: var(--orange); margin-top: -4px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--navy); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--light); }

/* Status badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-suspended { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-read { background: #f3f4f6; color: #6b7280; }
.badge-approved { background: #d1fae5; color: #065f46; }

/* Card boxes */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* --------------------------
   Star rating
   -------------------------- */
.star-rating { display: flex; gap: 4px; }
.star-rating i { font-size: 18px; color: #d1d5db; cursor: pointer; }
.star-rating i.active, .star-rating i.fa-solid { color: #f59e0b; }

/* --------------------------
   Responsive
   -------------------------- */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }

    .search-inner { flex-direction: column; border-radius: 12px; }
    .search-field { border-right: none; border-bottom: 1px solid var(--border); }
    .search-btn { border-radius: 0 0 12px 12px; width: 100%; justify-content: center; display: flex; }

    .why-inner { flex-direction: column; }
    .why-badge { display: none; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }

    .dash-layout { flex-direction: column; }
    .dash-sidebar { width: 100%; min-height: auto; }
    .dash-main { padding: 20px; }

    .dad-card { flex-direction: column; }
    .hero { padding: 48px 0 56px; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
}

/* Password toggle */
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:44px; }
.pw-toggle { position:absolute;right:14px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--gray);font-size:15px;padding:0; }
.pw-toggle:hover { color:var(--navy); }
