/*
Theme Name: Matuca Modern
Theme URI: https://matuca.software
Description: A modern, clean WordPress theme for digital products and services, inspired by minimalist SaaS design
Version: 1.0.5
Author: Matuca Software
Author URI: https://matuca.software
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matuca-modern
Domain Path: /languages
Tags: responsive, clean, minimal, services, products, contact-form

This theme is built with modern web standards, fully responsive design (mobile, tablet, desktop),
and optimized for digital product and services presentation.
*/

/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: #1a1a1a;
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 2.25rem;
}

h3 {
	font-size: 1.75rem;
}

h4 {
	font-size: 1.5rem;
}

h5 {
	font-size: 1.25rem;
}

h6 {
	font-size: 1rem;
}

p {
	margin-bottom: 1rem;
	color: #555;
}

a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #0052a3;
	text-decoration: underline;
}

/* Container & Layout */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.row {
	display: grid;
	gap: 1.5rem;
}

.row.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.row.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Header & Navigation */
.site-header {
	background-color: #ffffff;
	border-bottom: 1px solid #f0f0f0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.site-logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
}

.site-logo a {
	color: #1a1a1a;
}

.site-logo img {
	max-height: 50px;
	width: auto;
}

.main-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.main-menu a {
	color: #555;
	font-weight: 500;
	position: relative;
}

.main-menu a:hover,
.main-menu a.active {
	color: #0066cc;
}

.main-menu a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #0066cc;
	transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu a.active::after {
	width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #1a1a1a;
}

/* Hero Section */
.hero {
	padding: 5rem 0;
	background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
	text-align: center;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	color: #1a1a1a;
}

.hero p {
	font-size: 1.25rem;
	color: #666;
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero-image {
	margin-top: 3rem;
}

.hero-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.btn-primary {
	background-color: #0066cc;
	color: #ffffff;
}

.btn-primary:hover {
	background-color: #0052a3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
	background-color: #f0f0f0;
	color: #1a1a1a;
	border: 1px solid #ddd;
}

.btn-secondary:hover {
	background-color: #e8e8e8;
	transform: translateY(-2px);
}

.btn-group {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Cards */
.card {
	background-color: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	padding: 1.5rem;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.card-image {
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: 6px;
	height: 200px;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.card-description {
	color: #666;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.card-meta {
	font-size: 0.85rem;
	color: #999;
	margin-bottom: 1rem;
}

/* Section Spacing */
section {
	padding: 3rem 0;
}

section.alternate {
	background-color: #f9f9f9;
}

/* Section Title */
.section-title {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title h2 {
	margin-bottom: 0.5rem;
}

.section-title p {
	font-size: 1.1rem;
	color: #666;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Product Grid */
.products-grid,
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

/* Services Section */
.service-item {
	text-align: center;
}

.service-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e8f2ff;
	border-radius: 8px;
	font-size: 2rem;
}

.service-item h3 {
	margin-bottom: 0.5rem;
}

.service-item p {
	color: #666;
}

/* Contact Form */
.contact-form {
	max-width: 800px;
	margin: 0 auto;
	padding: 1rem 0;
}

/* Ensure form headings match the reference */
.contact-form h2,
.contact-form h1 {
	font-weight: 300;
	font-size: 3rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.contact-form p.subtitle {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 2rem;
}

/* Generalized Form Styles (works with CF7 and theme form-group) */
.form-group,
.wpcf7-form-control-wrap,
.wpcf7 p {
	margin-bottom: 1.5rem;
}

/* Input Fields & Top Labels */
.form-group label,
.wpcf7 label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 400; /* Normal weight */
	color: #333;
	font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #ccc; /* Thin border */
	border-radius: 6px; /* Rounded corners */
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	background-color: #fff;
	color: #333;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: #666;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-group textarea,
.wpcf7 textarea {
	resize: vertical;
	min-height: 150px;
}

/* Two-column layout if possible - requires specific markup or we try to force it for standard paragraphs */
/* Trying to target CF7 default mechanics where fields are wrapped in p */
@media (min-width: 768px) {
    /* If the user uses a specific grid structure or standard WP classes, we can try to facilitate columns.
       However, without changing HTML, standard <p> tags stack.
       We will provide a generic class helper if they can add it,
       otherwise these styles make the fields look correct individually. */
}

/* Checkboxes */
.form-group input[type="checkbox"],
.wpcf7 input[type="checkbox"] {
	width: auto;
	margin-right: 0.5rem;
}

.form-group span.wpcf7-list-item {
    margin: 0;
}

/* Submit Button - Red style */
.form-submit,
.wpcf7-submit,
button[type="submit"],
input[type="submit"] {
	width: 100%;
	padding: 1rem;
	background-color: #d32f2f; /* Red color */
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin-top: 1rem;
	text-transform: none; /* Usually normal case */
}

.form-submit button:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover {
	background-color: #b71c1c; /* Darker red */
}

/* Helper classes for two-column layout in forms */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.form-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .form-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Footer */
.site-footer {
	background-color: #1a1a1a;
	color: #ffffff;
	padding: 3rem 0 1rem;
	margin-top: 5rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	color: #ffffff;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.footer-section ul {
	list-style: none;
}

.footer-section a {
	color: #bbb;
	display: block;
	margin-bottom: 0.5rem;
	transition: color 0.3s ease;
}

.footer-section a:hover {
	color: #ffffff;
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid #333;
	padding-top: 2rem;
	text-align: center;
	color: #999;
	font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	h3 {
		font-size: 1.5rem;
	}

	.container {
		padding: 0 1rem;
	}

	.header-content {
		padding: 0.75rem 0;
	}

	.main-menu {
		display: none;
		flex-direction: column;
		gap: 0;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #ffffff;
		border-bottom: 1px solid #f0f0f0;
		padding: 1rem;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}

	.main-menu.active {
		display: flex;
	}

	.main-menu a {
		padding: 0.5rem 0;
		border-bottom: 1px solid #f0f0f0;
	}

	.main-menu a::after {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.hero {
		padding: 3rem 0;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero p {
		font-size: 1rem;
	}

	.btn-group {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.products-grid,
	.services-grid {
		grid-template-columns: 1fr;
	}

	section {
		padding: 2rem 0;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.75rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	h3 {
		font-size: 1.25rem;
	}

	.hero h1 {
		font-size: 1.75rem;
	}

	.hero p {
		font-size: 0.95rem;
	}

	.main-menu {
		gap: 0;
	}

	.card {
		padding: 1rem;
	}

	.section-title {
		margin-bottom: 2rem;
	}
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
	.container {
		padding: 0 1.25rem;
	}

	.products-grid,
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Utilities */
.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
	display: none;
}

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

