/*
Theme Name: DLink Setup Pro
Theme URI: https://example.com/dlink-setup-pro
Author: Your Name
Author URI: https://example.com
Description: A clean, modern WordPress theme for D-Link Wi-Fi 6 and Wi-Fi 7 router setup landing pages. Features a hero, three setup-method columns, key feature checklist, numbered setup steps, FAQ accordion, and long-form SEO content sections. Fully responsive and customizer-ready.
Version: 1.1.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decoapp
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles
*/

/* =========================================
   RESET & BASE
========================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #1a8fe3;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #0c6db5; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: #1a2a3a;
    margin: 0 0 .6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; }
ul li, ol li { margin-bottom: .5em; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1a8fe3;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
    border: none;
    cursor: pointer;
    font-size: .95rem;
}
.btn:hover { background: #0c6db5; transform: translateY(-1px); }
.btn-secondary { background: #2c3e50; }
.btn-secondary:hover { background: #1a2a3a; }

/* =========================================
   HEADER
========================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,.03);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-branding .site-title {
    font-size: 1.4rem;
    margin: 0;
}
.site-branding .site-title a { color: #1a2a3a; }
.site-branding .custom-logo { max-height: 50px; width: auto; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.main-navigation ul li a {
    color: #2c3e50;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: #1a8fe3;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a2a3a;
}

/* =========================================
   HERO
========================================= */
.hero {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef4fa 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: .4em;
    color: #1a2a3a;
}
.hero .hero-subtitle {
    font-size: 1.15rem;
    color: #4a5b6c;
    max-width: 820px;
    margin: 0 auto 1.5em;
}
.hero .hero-actions { margin-top: 1.5em; }
.hero .hero-actions .btn + .btn { margin-left: 12px; }

/* =========================================
   SECTIONS
========================================= */
.section {
    padding: 70px 0;
}
.section.alt-bg { background: #f7fafc; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}
.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1a8fe3;
    border-radius: 2px;
}

/* =========================================
   FEATURE COLUMNS (3-up)
========================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(20,40,60,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(20,40,60,.1);
}
.feature-card .icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 18px;
    background: #e7f3fd;
    color: #1a8fe3;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: bold;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: #5a6b7c; margin: 0; }

/* =========================================
   SETUP STEPS
========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.step-card {
    background: #fff;
    padding: 40px 28px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eaeef2;
    position: relative;
}
.step-card .step-num {
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto 18px;
    background: #1a8fe3;
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
}
.step-card h4 { margin-bottom: 18px; }

/* =========================================
   KEY FEATURES LIST
========================================= */
.feature-list {
    max-width: 920px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 14px 0 14px 36px;
    position: relative;
    border-bottom: 1px solid #eef2f5;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #1a8fe3;
    color: #fff;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: bold;
}
.feature-list li strong { color: #1a2a3a; }

/* =========================================
   FAQ ACCORDION
========================================= */
.faq-wrap {
    max-width: 860px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 50px 20px 22px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2a3a;
    position: relative;
}
.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #1a8fe3;
    transition: transform .2s ease;
}
.faq-item.active .faq-question::after {
    content: "−";
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding: 0 22px;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 22px 22px;
}

/* =========================================
   CONTENT (blog/page)
========================================= */
.entry-content {
    max-width: 820px;
    margin: 0 auto;
}
.entry-content h2,
.entry-content h3 {
    margin-top: 1.5em;
}
.entry-content blockquote {
    border-left: 4px solid #1a8fe3;
    background: #f7fafc;
    padding: 16px 22px;
    margin: 1.5em 0;
    font-style: italic;
}
.entry-content img {
    border-radius: 6px;
    margin: 1em 0;
}

.page-header {
    background: #f7fafc;
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #eaeef2;
}

/* =========================================
   CTA BANNER
========================================= */
.cta-banner {
    background: linear-gradient(135deg, #1a8fe3 0%, #0c6db5 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p {
    color: rgba(255,255,255,.9);
    max-width: 640px;
    margin: 0 auto 1.5em;
    font-size: 1.05rem;
}
.cta-banner .btn {
    background: #fff;
    color: #1a8fe3 !important;
}
.cta-banner .btn:hover { background: #f6f9fc; }

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background: #1a2a3a;
    color: #c5d2e0;
    padding: 50px 0 20px;
}
.site-footer a { color: #c5d2e0; }
.site-footer a:hover { color: #fff; }

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}
.footer-widget h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li { margin-bottom: 8px; }

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
    font-size: .9rem;
    color: #8a9bad;
}

/* =========================================
   COMMENTS
========================================= */
.comments-area {
    max-width: 820px;
    margin: 40px auto 0;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-body {
    background: #f7fafc;
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .feature-grid,
    .steps-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 50px 0; }
    .hero { padding: 60px 0 40px; }
}
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
        gap: 0;
    }
    .main-navigation ul li {
        padding: 10px 0;
        border-bottom: 1px solid #eef2f5;
    }
    .main-navigation.toggled ul { display: flex; }
    .menu-toggle { display: block; }
    .site-header .container { position: relative; }
}

/* =========================================
   ADDED: Disclaimer, hero/section figures, image-friendly icons
========================================= */

/* Footer disclaimer */
.site-disclaimer {
    background: #f7f7f7;
    border-left: 4px solid #e74c3c;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    border-radius: 4px;
}
.site-disclaimer strong { color: #c0392b; }
.site-disclaimer a { color: inherit; text-decoration: underline; }

/* Hero image */
.hero-figure {
    margin: 24px auto 28px;
    max-width: 1100px;
    text-align: center;
}
.hero-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Section figures */
.section-figure {
    margin: 24px auto;
    max-width: 800px;
    text-align: center;
}
.section-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.section-figure figcaption {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    font-style: italic;
}
.section-figure-square {
    max-width: 420px;
}

/* Feature-card icon when an image is supplied */
.feature-card .icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: inline-block;
}

/* Hide layout shift while images load */
img[width][height] {
    height: auto;
}
