/*
Theme Name:  Roby Real Estate
Theme URI:   https://robyrealestate.pt
Author:      CiberConceito
Author URI:  https://ciberconceito.pt
Description: Tema WordPress one-page para Roby Real Estate
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: roby-realestate
*/

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

:root {
    --color-bg:           #f5f0ea;
    --color-header-from:  #ede5d8;
    --color-header-mid:   #e0d4c0;
    --color-header-to:    #ede5d8;
    --color-header-border: rgba(160,130,90,0.3);
    --color-border:       rgba(160,130,90,0.25);
    --color-text:         #9a7a50;
    --color-muted:        #a0906e;
    --color-dark:         #7a5c38;
    --color-accent:       #6a5a48;
    --color-accent-hover: #4a3c2c;

    --font-display:     'Roboto', sans-serif;
    --font-body:        'Roboto', sans-serif;

    --max-width:        1200px;
    --header-height:    94px;

    --transition-base:  0.3s ease;
    --transition-slow:  0.6s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: linear-gradient(135deg, var(--color-header-from) 0%, var(--color-header-mid) 50%, var(--color-header-to) 100%);
    border-bottom: 1px solid var(--color-header-border);
    transition: background var(--transition-base);
}

#site-header .logo a {
    display: flex;
    align-items: center;
}

#site-header .logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

#site-header .logo .logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.header-social a:hover {
    color: var(--color-dark);
}

.header-social a svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.header-right {
    display: flex;
    align-items: center;
}

#main {
    padding: 172px 48px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
#hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 72px);
    overflow: hidden;
    margin-top: var(--header-height);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
}

.slider-counter {
    position: absolute;
    bottom: 40px;
    right: 48px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    z-index: 10;
}

.slider-counter .current {
    font-size: 22px;
    color: var(--color-off-white);
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.slider-dot.active {
    background: var(--color-gold);
    width: 40px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(10,10,10,0.4);
    border: 1px solid var(--color-border);
    color: var(--color-off-white);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
	display: none;
}

.slider-btn:hover {
    background: rgba(201,169,110,0.2);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.slider-btn.prev { left: 48px; }
.slider-btn.next { right: 48px; }

.slider-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* =====================================================
   ABOUT / INTRO SECTION
   ===================================================== */
#about {
    padding: 100px 48px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Texto institucional */
.about-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text);
    border-left: 2px solid rgba(154,122,80,0.35);	
    margin-bottom: 48px;
	padding-left: 18px;
}

.about-text p {
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--color-dark);
    font-weight: 600;
}

/* Separator */
.about-separator {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: 48px 0;
}

/* Contacte-nos – bloco abaixo do texto */
.contact-block-title {
    font-size: 14px;
    color: var(--color-muted);
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.contact-line {
    font-size: 15px;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.contact-line a {
    color: var(--color-dark);
    transition: color var(--transition-base);
}

.contact-line a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.contact-note {
    font-size: 12px;
    color: var(--color-muted);
}

.cta-section {
    display: flex;
	background: linear-gradient(135deg, rgba(154,122,80,0.09) 0%, rgba(154,122,80,0.04) 100%);
    border: 1px solid rgba(154,122,80,0.25);
    padding: 22px 28px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    line-height: 1.2rem;
}

.btn-cta, .wpcf7-submit {
    align-items: center;
    gap: 10px;
    background: var(--color-text);
    color: #f5f0ea;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    transition: background var(--transition-base);
    text-decoration: none;
	min-width: 266px;
	text-align: center;
	display: block;
}

.btn-cta:hover, .wpcf7-submit:hover {
    background: var(--color-dark);
    color: #f5f0ea;
}

.btn-cta svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

/* =====================================================
   NEWSLETTER FORM
   ===================================================== */

.newsletter-section {
	display: flex;
    border: 1px solid rgba(154,122,80,0.25);
    padding: 22px 28px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    line-height: 1.2rem;
}

.newsletter-block-title {
    font-size: 14px;
    color: var(--color-muted);
    margin-top: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
}


/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
    border-top: 1px solid var(--color-header-border);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copy {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    text-align: center;
}

/* =====================================================
   FORMS
   ===================================================== */

span.wpcf7-form-control-wrap input, span.wpcf7-form-control-wrap textarea {
    display: block;
    width: 100%;
    padding: 10px;
	margin-bottom: 10px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    #site-header {
        padding: 0 20px;
		display: block;
		text-align: center;
    }
	
	#site-header .logo img {
		height: 40px;
		margin: 10px auto;
	}
	
	.header-right {
		display: inline-flex;
	}
	
	.header-social a {
		width: 24px;
		height: 24px;
	}

    #about {
        padding: 80px 24px 60px;
    }
	
	#hero-slider {
		height: 300px;
	}	

    .slider-btn.prev { left: 16px; }
    .slider-btn.next { right: 16px; }

    .slider-counter { right: 20px; bottom: 20px; }
    .slider-nav { left: 20px; bottom: 20px; }
	
	.cta-section, .newsletter-section {
		display: block;
	}
	
	.contact-note, .newsletter-block-title {
		margin-bottom: 32px;
	}
	
    #site-footer {
        padding: 24px 20px;
    }
}

/* =====================================================
   WORDPRESS ALIGNMENT HELPERS
   ===================================================== */
.alignnone  { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft  { float: left;  margin: 5px 20px 20px 0; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--color-muted); }

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