/*
Theme Name: Quoin House
Theme URI: https://quoinhouse.com
Author: Quoin House
Description: Elegant WordPress theme for Quoin House - The Architecture of Wealth
Version: 1.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quoin-house
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   COLOR SYSTEM
   ============================================ */
:root {
    --cream: #f9f6f0;
    --limestone: #e8e4dc;
    --charcoal: #2b2725;
    --warm-gray: #8b8279;
    --stone: #c9c4ba;
    --olive: #7a855b;
    --navy: #3a4f5c;
    --terracotta: #c17b63;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
    font-family: Georgia, "Times New Roman", serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 17px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

h1 {
    font-size: 56px;
    letter-spacing: -1px;
}

h2 {
    font-size: 36px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

a {
    color: var(--olive);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--charcoal);
}

strong, b {
    font-weight: 400;
}

em, i {
    font-style: italic;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.narrow-content {
    max-width: 720px;
    margin: 0 auto;
}

.wide-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 40px 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    padding: 32px 60px;
    border-bottom: 1px solid var(--stone);
    background: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-title {
    margin: 0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.site-title a {
    color: var(--charcoal);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--olive);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-navigation a {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--warm-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--charcoal);
}

/* Dropdown Submenu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cream);
    border: 1px solid var(--stone);
    padding: 1rem 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(43, 39, 37, 0.1);
    z-index: 999;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    text-transform: none;
    font-size: 14px;
}

.main-navigation ul ul a:hover {
    background: var(--limestone);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-section {
    text-align: center;
    padding: 120px 60px 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 246, 240, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

.hero-section .subtitle {
    font-size: 20px;
    color: var(--warm-gray);
    font-style: italic;
    margin-bottom: 32px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    text-align: center;
}

.section-intro {
    font-size: 17px;
    line-height: 1.9;
    color: var(--warm-gray);
    margin-bottom: 60px;
    text-align: center;
}

/* Background Variations */
.bg-white {
    background: white;
    padding: 80px 20px;
}

.bg-cream {
    background: var(--cream);
    padding: 80px 20px;
}

.bg-limestone {
    background: var(--limestone);
    padding: 80px 20px;
}

.bg-charcoal {
    background: var(--charcoal);
    color: var(--limestone);
    padding: 80px 20px;
}

.bg-charcoal h1,
.bg-charcoal h2,
.bg-charcoal h3 {
    color: var(--cream);
}

.bg-charcoal p {
    color: var(--limestone);
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card {
    background: white;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(43, 39, 37, 0.08);
}

.card h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 16px;
}

.card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 16px;
}

.card.border-olive {
    border-left: 3px solid var(--olive);
}

.card.border-navy {
    border-left: 3px solid var(--navy);
}

.card.border-terracotta {
    border-left: 3px solid var(--terracotta);
}

/* Content Boxes */
.highlight-box {
    background: var(--limestone);
    padding: 32px;
    margin: 40px 0;
    border-left: 3px solid var(--olive);
}

.warning-box {
    background: #fff5f5;
    border-left: 3px solid var(--terracotta);
    padding: 32px;
    margin: 40px 0;
}

.info-box {
    background: var(--limestone);
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

/* Blockquote */
blockquote {
    font-size: 24px;
    line-height: 1.6;
    font-style: italic;
    color: var(--charcoal);
    margin: 2rem 0;
    padding: 2.5rem;
    background: var(--limestone);
    border-left: 3px solid var(--olive);
}

/* ============================================
   BUTTONS & CTAS
   ============================================ */
.cta-primary,
.wp-block-button__link {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--olive);
    text-decoration: none;
    border: none;
    border-bottom: 1px solid var(--olive);
    padding: 8px 0 4px;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    background: transparent;
    cursor: pointer;
}

.cta-primary:hover,
.wp-block-button__link:hover {
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.cta-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--olive);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--charcoal);
    color: white;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--stone);
    background: white;
    font-family: Georgia, serif;
    font-size: 16px;
    color: var(--charcoal);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--olive);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

button[type="submit"],
input[type="submit"] {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--olive);
    color: var(--olive);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0 4px;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    color: var(--charcoal);
    border-color: var(--charcoal);
}

/* ============================================
   ENTRY CONTENT
   ============================================ */
.entry-title {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 300;
    line-height: 1.2;
}

.entry-meta {
    font-size: 14px;
    color: var(--warm-gray);
    margin-bottom: 32px;
}

.entry-meta a {
    color: var(--warm-gray);
}

.entry-meta a:hover {
    color: var(--olive);
}

.entry-content {
    margin: 40px 0;
}

.entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 80px 60px 40px;
    border-top: 1px solid var(--stone);
    text-align: center;
    background: var(--charcoal);
    color: var(--limestone);
}

.footer-wordmark {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 400;
}

.footer-tagline {
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-location {
    font-size: 13px;
    color: var(--warm-gray);
    margin-bottom: 40px;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 24px 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-navigation li {
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    color: var(--warm-gray);
    font-size: 12px;
}

.footer-navigation a:hover {
    color: var(--limestone);
}

.footer-navigation li:not(:last-child)::after {
    content: " • ";
    margin-left: 8px;
    color: var(--warm-gray);
}

.site-info {
    font-size: 11px;
    color: var(--warm-gray);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.copyright {
    font-size: 11px;
    color: var(--warm-gray);
}

/* ============================================
   WORDPRESS CORE CLASSES
   ============================================ */
.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--warm-gray);
    text-align: center;
    margin-top: 8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--cream);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--charcoal);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   IMAGES
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--stone);
    color: var(--charcoal);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--olive);
    color: white;
    border-color: var(--olive);
}

.pagination .current {
    background: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
.smooth-transition {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    .site-header {
        padding: 24px 32px;
    }
    
    .site-content {
        padding: 40px 32px;
    }
    
    .hero-section {
        padding: 100px 32px 60px;
        min-height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .entry-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    .site-footer {
        padding: 60px 32px 32px;
    }
    
    blockquote {
        font-size: 20px;
        padding: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .site-header {
        padding: 20px;
    }
    
    .site-content {
        padding: 30px 20px;
    }
    
    .hero-section {
        padding: 80px 20px 40px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section .subtitle {
        font-size: 18px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-footer {
        padding: 40px 20px 20px;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-navigation li:not(:last-child)::after {
        display: none;
    }
    
    .card {
        padding: 24px;
    }
    
    .bg-white,
    .bg-cream,
    .bg-limestone,
    .bg-charcoal {
        padding: 60px 20px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

::selection {
    background: var(--olive);
    color: white;
}

::-moz-selection {
    background: var(--olive);
    color: white;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .main-navigation {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
