/*
Theme Name:     Decreto
Theme URI:
Description:    Generatepress child theme.
Author:         Decreto
Author URI:     https://staging.decreto.com.mx
Template:       generatepress
Version:        0.1.0
*/

/* Reskin GeneratePress's own color system to Decreto's dark/gold palette. */
:root {
	--base: #0d0d0d;
	--base-2: #141414;
	--base-3: #1a1a1a;
	--contrast: #f5f5f5;
	--contrast-2: #cbd0d6;
	--contrast-3: #8a8f98;
	--accent: #fcb402;

	/* Aliases used in our own custom markup (homepage sections, etc.) */
	--decreto-bg: var(--base);
	--decreto-bg-elevated: var(--base-3);
	--decreto-border: #2a2a2a;
	--decreto-gold: var(--accent);
	--decreto-gold-dark: #d99a00;
	--decreto-text: var(--contrast);
	--decreto-text-muted: var(--contrast-2);

	/* WooCommerce's own form design tokens */
	--wc-form-color-background: var(--base-3);
	--wc-form-color-text: var(--contrast);
	--wc-form-border-color: #2a2a2a;
}

body {
	background-color: var(--base);
}

/* Logo: fix oversized rendering (no max-height was set anywhere before) */
.site-logo img.header-image {
	max-height: 50px;
	width: auto;
}

/* Buttons */
.wp-block-button__link,
.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
	background-color: var(--accent);
	color: #111111;
	border: none;
	border-radius: 4px;
	font-weight: 600;
}

.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background-color: var(--decreto-gold-dark);
	color: #111111;
}

/* Reusable card surface for our own homepage sections */
.decreto-card {
	background-color: var(--base-3);
	border: 1px solid var(--decreto-border);
	border-radius: 8px;
}

/* Form fields (login, checkout, search, etc.) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select,
.woocommerce-Input.woocommerce-Input--text.input-text,
.woocommerce-Input {
	background-color: var(--base-3);
	border: 1px solid var(--decreto-border);
	color: var(--contrast);
}

/* =====================================================================
   Homepage sections (placeholder scaffold — content pending from client)
   ===================================================================== */
.decreto-section { padding: 4rem 0; }
.decreto-section--tight { padding: 2.5rem 0; }
.decreto-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.decreto-eyebrow {
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.78rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
}
.decreto-note {
	display: inline-block;
	background: rgba(252, 180, 2, 0.12);
	border: 1px solid rgba(252, 180, 2, 0.35);
	color: var(--accent);
	font-size: 0.72rem;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}
.decreto-placeholder {
	display: flex; align-items: center; justify-content: center;
	min-height: 220px;
	background-color: var(--base-2);
	border: 1px dashed var(--decreto-border);
	border-radius: 10px;
	color: var(--contrast-3);
	font-size: 0.85rem; text-align: center; padding: 1rem;
}
.decreto-btn {
	display: inline-block; background: var(--accent); color: #111;
	font-weight: 700; padding: 0.85rem 1.5rem; border-radius: 6px; text-decoration: none;
}
.decreto-btn:hover { background: var(--decreto-gold-dark); color: #111; }

/* Hero */
.decreto-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.decreto-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 1rem; }
.decreto-hero p.lead { color: var(--contrast-2); font-size: 1.05rem; margin: 0 0 1.5rem; }
.decreto-badge {
	margin-top: 1.5rem; display: block; width: -moz-fit-content; width: fit-content;
	background: var(--base-3); border: 1px solid var(--accent);
	border-radius: 10px; padding: 1rem 1.25rem;
}
.decreto-badge strong { color: var(--accent); font-size: 1.6rem; display: block; }

/* Feature bar */
.decreto-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.decreto-feature { background: var(--base-3); border: 1px solid var(--decreto-border); border-radius: 8px; padding: 1rem; }
.decreto-feature b { display: block; color: #fff; margin-bottom: 0.25rem; font-size: 0.95rem; }
.decreto-feature span { color: var(--contrast-2); font-size: 0.85rem; }

/* Steps */
.decreto-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.decreto-step { text-align: center; }
.decreto-step .num {
	width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid var(--accent); color: var(--accent);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; margin: 0 auto 0.75rem;
}
.decreto-step b { display: block; color: #fff; margin-bottom: 0.35rem; }
.decreto-step span { color: var(--contrast-2); font-size: 0.9rem; }

/* Card grids (categories, works) */
.decreto-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.decreto-grid--6 { grid-template-columns: repeat(3, 1fr); }
.decreto-grid--5 { grid-template-columns: repeat(5, 1fr); }
.decreto-card2 { background: var(--base-3); border: 1px solid var(--decreto-border); border-radius: 10px; overflow: hidden; }
.decreto-card2 .ph { min-height: 130px; background: var(--base-2); border-bottom: 1px dashed var(--decreto-border); display: flex; align-items: center; justify-content: center; color: var(--contrast-3); font-size: 0.72rem; text-align: center; padding: 0.5rem; }
.decreto-card2 .body { padding: 0.85rem 1rem; }
.decreto-card2 b { color: #fff; display: block; }
.decreto-card2 span { color: var(--contrast-2); font-size: 0.82rem; }

/* Bottom trio: promos / testimonials / FAQ */
.decreto-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.decreto-panel { background: var(--base-3); border: 1px solid var(--decreto-border); border-radius: 10px; padding: 1.25rem; }
.decreto-panel h3 { margin-top: 0; }
.decreto-table { width: 100%; border-collapse: collapse; }
.decreto-table th, .decreto-table td { text-align: left; padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--decreto-border); color: var(--contrast-2); font-size: 0.9rem; }
.decreto-table th { color: #fff; }
.decreto-testi { border-bottom: 1px solid var(--decreto-border); padding: 0.75rem 0; }
.decreto-testi:last-child { border-bottom: none; }
.decreto-testi .stars { color: var(--accent); font-size: 0.85rem; }
.decreto-testi p { color: var(--contrast-2); font-size: 0.88rem; margin: 0.35rem 0; font-style: italic; }
.decreto-testi cite { color: #fff; font-size: 0.8rem; font-style: normal; }
.decreto-faq { border-bottom: 1px solid var(--decreto-border); }
.decreto-faq summary { cursor: pointer; padding: 0.65rem 0; color: #fff; font-size: 0.9rem; list-style: none; }
.decreto-faq summary::-webkit-details-marker { display: none; }
.decreto-faq p { color: var(--contrast-2); font-size: 0.85rem; padding-bottom: 0.65rem; margin: 0; }

@media (max-width: 900px) {
	.decreto-hero { grid-template-columns: 1fr; }
	.decreto-features { grid-template-columns: repeat(2, 1fr); }
	.decreto-steps, .decreto-trio { grid-template-columns: 1fr; }
	.decreto-grid--6, .decreto-grid--5 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Footer ---- */
.site-footer .footer-widgets {
	background-color: var(--base-2);
	border-top: 1px solid var(--decreto-border);
}
.footer-widgets .widget-title,
.footer-widgets .widgettitle {
	color: #fff;
	font-size: 0.95rem;
	margin-bottom: 0.6rem;
}
.footer-widgets .inside-footer-widgets a { color: var(--contrast-2); text-decoration: none; }
.footer-widgets .inside-footer-widgets a:hover { color: var(--accent); }
.decreto-foot-tagline { color: var(--contrast-2); font-size: 0.88rem; margin: 0 0 0.75rem; }
.decreto-foot-links { list-style: none; padding: 0; margin: 0; }
.decreto-foot-links li { padding: 0.22rem 0; font-size: 0.88rem; }
.decreto-foot-contact { color: var(--contrast-2); font-size: 0.85rem; line-height: 1.7; }
.decreto-foot-note { display: inline-block; background: rgba(252,180,2,0.12); border: 1px solid rgba(252,180,2,0.35); color: var(--accent); font-size: 0.68rem; padding: 1px 6px; border-radius: 4px; }

.site-info {
	background-color: var(--base);
	color: var(--contrast-3);
	border-top: 1px solid var(--decreto-border);
}
.site-info a { color: var(--contrast-2); }
.site-info a:hover { color: var(--accent); }
