/*
Theme Name: DPrivwise
Theme URI: https://dprivwise.com/
Author: DPrivwise
Author URI: https://dprivwise.com/
Description: Custom one-page theme for DPrivwise: data protection, privacy and AI governance. Self-hosted fonts, no tracking, Customizer settings for contact details, hero and credentials, built-in secure contact form (or Contact Form 7).
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dprivwise
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* WordPress-specific additions. The main design is in assets/css/main.css. */

/* Admin bar offset for the sticky header */
.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){.admin-bar .site-header{top:46px}}
@media screen and (max-width:600px){.admin-bar .site-header{top:0}}

/* Custom logo (Appearance > Customize > Site Identity) */
.custom-logo-link{display:flex;align-items:center}
.custom-logo-link img{max-height:56px;width:auto}

/* Menus from Appearance > Menus */
.nav-links .current_page_item > a{color:var(--green-dark)}
.footer-menu{list-style:none;margin:0;padding:0}

/* Footer paragraphs (inline styles in the static site) */
.footer-contact{margin-top:14px}
.footer-bottom p{margin:0}
.site-footer .footer-contact a{color:#C9D3CC}

/* Contact form: honeypot, status messages, Contact Form 7 */
.hp-field{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.form-status-success{background:var(--green-pale);color:var(--green-darker)}
.form-status-error{background:#FDECEC;color:#8A1C1C}
.contact-details a{color:#fff}
.cf7-wrap .wpcf7-form p{margin:0 0 16px}
.cf7-wrap label{display:block;font-weight:600;color:var(--ink);font-size:.97rem}
.cf7-wrap input[type="text"],.cf7-wrap input[type="email"],.cf7-wrap input[type="tel"],.cf7-wrap textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);padding:12px 14px;border:1.5px solid #c6d1ca;border-radius:10px;background:#fbfdfb;margin-top:6px}
.cf7-wrap textarea{min-height:140px}
.cf7-wrap input[type="submit"]{font-family:var(--font-head);font-weight:700;font-size:1.05rem;padding:.85em 1.5em;border-radius:999px;border:0;background:var(--green-dark);color:#fff;cursor:pointer}
.cf7-wrap input[type="submit"]:hover{background:var(--green-darker)}
.cf7-wrap .wpcf7-response-output{margin:12px 0 0;border-radius:10px;padding:10px 14px}

/* Insights from posts */
.insights-3{grid-template-columns:repeat(3,1fr)}
.insights-list{grid-template-columns:repeat(3,1fr)}
.insight img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.insight-placeholder{display:grid;place-items:center;aspect-ratio:4/5;background:var(--green-pale)}
.insight-placeholder img{width:40%;height:auto;aspect-ratio:auto;background:none}
.insights-more{margin-top:28px;text-align:center}
@media (max-width:980px){.insights-3,.insights-list{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.insights-3,.insights-list{grid-template-columns:1fr}}

/* Blog list / pagination */
.post-list{padding-top:56px}
.pagination{margin-top:40px}
.pagination .nav-links{display:flex!important;flex-wrap:wrap;gap:8px;position:static;flex-direction:row;box-shadow:none;border:0;padding:0;background:none}
.pagination .page-numbers{display:inline-block;padding:8px 14px;border-radius:8px;border:1px solid #d6e5db;text-decoration:none;color:var(--green-dark)}
.pagination .page-numbers.current{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}

/* Post / page content */
.entry-content{font-size:1.05rem}
.entry-content img{max-width:100%;height:auto}
.entry-thumb{border-radius:16px;margin:0 0 28px;max-width:100%;height:auto}
.entry-content h2{font-size:1.6rem;margin-top:1.6em}
.entry-content blockquote{margin:1.2em 0;padding:12px 20px;border-left:4px solid var(--green-light);background:var(--green-pale);border-radius:8px}
.entry-content .wp-block-button__link{background:var(--green-dark);border-radius:999px}
.post-nav{margin:40px 0 24px;padding-top:20px;border-top:1px solid #e3e9e5}
.post-nav .nav-links{display:flex!important;justify-content:space-between;gap:16px;position:static;flex-direction:row;box-shadow:none;border:0;padding:0;background:none}
.post-nav .nav-links a{border:0;padding:0;font-family:var(--font-head);font-weight:600}

/* Core alignment and accessibility classes */
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption,.wp-block-image figcaption{font-size:.9rem;color:var(--grey)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{clip:auto;width:auto;height:auto;margin:0;padding:10px 16px;background:#fff;z-index:1000}
.sticky,.bypostauthor,.gallery-caption{}

/* Search form */
.search-form{display:flex;gap:10px;margin-top:20px;max-width:520px}
.search-form label{flex:1}
.search-form .search-field{width:100%;font:inherit;padding:10px 14px;border:1.5px solid #c6d1ca;border-radius:10px}
.search-form .search-submit{font-family:var(--font-head);font-weight:700;padding:10px 18px;border-radius:999px;border:0;background:var(--green-dark);color:#fff;cursor:pointer}

/* Comments */
.comment-list{list-style:none;padding:0}
.comment-respond textarea,.comment-respond input[type="text"],.comment-respond input[type="email"],.comment-respond input[type="url"]{width:100%;font:inherit;padding:10px 14px;border:1.5px solid #c6d1ca;border-radius:10px}
.comment-respond .submit{font-family:var(--font-head);font-weight:700;padding:.75em 1.4em;border-radius:999px;border:0;background:var(--green-dark);color:#fff;cursor:pointer}
.pagination .nav-links a,.post-nav .nav-links a{border-bottom:0;font-size:1rem;background:none}
