/*
Theme Name:  ADN Digital Solutions
Theme URI:   https://adndigital.com
Author:      ADN Digital Solutions
Author URI:  https://adndigital.com
Description: Dark-mode corporate theme for ADN Digital Solutions. Built with Tailwind CSS (CDN/compiled), Plus Jakarta Sans, and Advanced Custom Fields (ACF) for editable content.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adn-digital-solutions
Tags:        dark, tailwindcss, acf, corporate, one-page
*/

/* ── Base reset & body defaults ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #071526; /* --color-dark */
    color: #AED8F2;             /* --color-accent */
    font-family: "Plus Jakarta Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease forwards;
}

/* ── Details / summary chevron rotation ─────────────────────────────────── */
details.group[open] summary svg {
    transform: rotate(180deg);
}

/* ── WordPress core overrides ────────────────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

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

/* ── Contact Form 7 styles ───────────────────────────────────────────────── */
.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: rgba(7, 21, 38, 0.6);
    border: 1px solid rgba(2, 40, 115, 0.5);
    color: #ffffff;
    font-size: 0.875rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(174, 216, 242, 0.3);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: rgba(5, 219, 242, 0.5);
    box-shadow: 0 0 0 1px rgba(5, 219, 242, 0.3);
}

.wpcf7 select {
    color: rgba(174, 216, 242, 0.8);
    cursor: pointer;
}

.wpcf7 textarea {
    resize: none;
}

.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #05DBF2;
    color: #071526;
    font-weight: 700;
    font-size: 1rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 20px 25px -5px rgba(5, 219, 242, 0.2);
}

.wpcf7 input[type="submit"]:hover {
    background-color: #AED8F2;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(5, 219, 242, 0.4);
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    border: none !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    color: #86efac;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5;
}

.wpcf7-not-valid-tip {
    color: #fca5a5;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* ── Utility: hide scrollbar on mobile nav ───────────────────────────────── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
